Upgrade Jexus Web Server¶
By Lex Li
This page shows you how to upgrade Jexus web server on a Linux machine.
In this article:
Download and Unpack Jexus Files¶
wget http://www.linuxdot.net/down/jexus-x.y.z.tar.gz
tar -zxvf jexus-x.y.z.tar.gz
Jexus binary package is downloaded from its official site, and extracted to a folder named “jexus-x.y.z” after this step.
Stop Current Jexus Server¶
cd /usr/jexus
sudo ./jws stop
Assume the previous release was installed at /usr/jexus, we stop the service. If Jexus 5.3 was there, use “sudo ./jws.stop” instead of “sudo ./jws stop”.
Copy New Files¶
cd ~/jexus-x.y.z
sudo ./upgrade
Now let’s go back to the extracted folder and upgrade necessary files to /usr/jexus.
Fix Startup Commands¶
sudo vi /etc/rc.local
Press i on keyboard to enter edit mode.
If previous start command “/usr/jexus/jws.start” exists, replace it with “/usr/jexus/jws start”.
Remove “/usr/jexus/state.start” if it presents.
Press Esc on keyboard to exit edit mode.
Type :wq and press Enter on keyboard to exit vi.
Here we remove the old entries, and use a new entry to start Jexus at startup.
Start Jexus HTTP Service¶
cd /usr/jexus
sudo ./jws start