nPerfServer can now serve HTTP/HTTPS requests as well as TCP/WebSockets connections. Therefore, you don't need anymore to install Apache/Nginx and PHP.
You have 2 ways :
Try our new upgrade script and get it working in less than 5 minutes. Do all the hard work for you ! Feedbacks are welcome
System compatibility : Red Hat Enterprise Linux 7 & 8, CentOS 7 & 8.
It must be run as root
wget https://repo.nperf.com/conf/easy-upgrade-from-2.0.x.sh -O easy-upgrade-from-2.0.x.sh && sh easy-upgrade-from-2.0.x.sh
If you prefer to do it by yourself, you can follow the steps below.
Firstly, we have to stop the service and make sure it doesn't restart automatically.
Edit your /etc/crontab
file and comment nPerf related entries or remove the specific cron.d file if applicable (for example /etc/cron.d/nperf
)
su - nperf
./nperf-service.sh stop
CentOS 7/8 & RedHat 7/8 are now fully supported for nPerfServer installation, you can get it working in one minute by using nPerf repository :
Supported systems for rpm packages are :
Please log in as root before running the following commands. You can login as root with sudo -i
yum -y install yum-utils wget &&\
rpm --import https://repo.nperf.com/conf/nperf-server.gpg.key &&\
wget https://repo.nperf.com/rhel/nperf-server.repo -O /tmp/nperf-server.repo &&\
yum-config-manager --add-repo /tmp/nperf-server.repo &&\
yum check-update
yum -y install nperf-server
Edit the config file if needed : /etc/nperf/nperf-server.conf
(If you wanna use your legacy HTTP server, set REDIRECT_PORT_80 to 0)
Then start nPerfServer: /etc/init.d/nperf-server start
To start automatically nPerfServer with the system, please run: systemctl enable nperf-server
This apply ONLY if your server is dedicated to nPerf and you wanna use nPerfServer for serving HTTP files!
You can now remove all useless stuff from previous nPerfServer version.
rm -rf /home/nperf
Then remove commented lines /etc/crontab
or remove specific cron.d file.
Do not remove /etc/cron.d/nperf-server
file !
You can also unmount the ramdisk : umount /var/www/html/nperf
(Then, don't forget to remove the corresponding line in /etc/fstab
)
This apply ONLY if your server is dedicated to nPerf!
apt-get remove apache2
rm -rf /var/www
You can also remove PHP.
Congratulations, you have upgraded nPerf server successfully!
You can check your server is OK using our online checker : https://server-check.nperf.com/
If you encounter difficulties, feel free to contact us, we'll help you: https://www.nperf.com/contact/