Install jexus5.8.2 on Centos7
Installing mono is too troublesome and quick productization development. I have installed the independent version without installing mono. Next, install Jexus step by step.
Open putty and use a non-root user to log on to the server.
To protect server security and integrity. Generally, non-root users are used to operate the server.
If you have not installed putty, you can view the previous article: remote connection to Centos7 Server
Download jexus5.8.2 standalone edition for windows and get the latest standalone version download link
Open Jexus Official Website
If you click the download Jexus button, the download is not an independent version by default.
Click the Technical Forum and select to download the jexus5.8.2 independent edition.
Copy download link https://www.linuxdot.net/down/jexus-5.8.2-x64.tar.gz
You can also use other methods to obtain the independent Version Download link (there are many Download Links online)
Server Download
- Enter the following command:Install jexus on the server
wget https://www.linuxdot.net/down/jexus-5.8.2-x64.tar.gz
-Bash: Command not found in wget
- Enter the following command:Install the wget component
Yum-y install wget
- Enter the following command:Test whether wget is valid
wget
- Enter the following command:Install jexus on the server
wget https://www.linuxdot.net/down/jexus-5.8.2-x64.tar.gz
- Enter the following command:Test whether the installation is successful
ll
- Enter the following command:Test the file name after Jexus is downloaded to the server
ls
The preceding command is as follows:
Finally, confirm that the download is successful. File Name: jexus-5.8.2-x64.tar.gz
Decompress Jexus
- Enter the commandCheck whether the usr directory exists.
ls /usr
- Enter the following command:* Extract jexus to the/usr directory *
sudo tar -xzvf jexus-5.8.2-x64.tar.gz /usr
The sudo command allows you to execute commands as root to complete tasks that cannot be completed by our account. This will allow you to enter the password of the current user.
Error: automa is not in the sudoers file. This will be reported.
- Enter the following command:* Find the sudoers file path *
ls sudoers
- Enter the following command:* Continue searching for the sudoers file path *
ls /etc/sudoers
- Enter the following command:View sudoers file content
cat /etc/sudoers
- Enter the following command:Switch to the root user
su root
The preceding command is as follows:
- Enter the following command:Modify sudoers file content
vi /etc/sudoers
- Enter the following command:Enter the editing status
Press I on the keyboard
- Enter the following command:Added a user who can execute the root command.
automa ALL=(ALL) ALL
- Enter the following command:Exit edit status
Press ESC on the keyboard
- Enter the following command:Save changes
:wq;
- Enter the following command:Confirm Modification
Press Enter on the keyboard.
Modify as follows:
- Enter the following command:Switch to automa user
su automa
- Enter the following command:Switch to automa user
su automa
- Enter the following command:* Extract jexus to the/usr directory *
sudo tar -xzvf jexus-5.8.2-x64.tar.gz -C /usr
- Enter the following command:* Check whether the decompression is successful *
ls /usr/jexus
The preceding commands are as follows:
Start jexus
- Enter the following command:Enter the jexus root directory
cd /usr/jexus
- Enter the following command:Start jexus
sudo ./jws start
Test whether jexus can deploy a website
- Enter the following command:Create a www folder
cd /usr/jexus sudo mkdir www cd www sudo mkdir default
- Enter the following command:Test whether the folder is successfully created.
ls
The preceding command:
- Enter the following command:Test whether the folder is successfully created.
ls
- Enter the following command:Modify the default folder permission
sudo chown -R automa:root
- Enter the following command:Go to the var/www folder
cd /var/www
- Enter the following command:Modify the default folder permission
sudo chown -R automa:root default
- Enter the following command:Go to the default folder
cd default
- Enter the following command:Create an index. aspx File
vi index.aspx
- Enter the following command:Enter the editing status
Press I on the keyboard
- Enter the following command:Add code
<%@Page Language="C#"%><%=DateTime.Now.ToString()%>
- Enter the following command:Exit edit status
Press ESC on the keyboard
- Enter the following command:Save changes
:wq
- Enter the following command:Confirm Modification
Press Enter on the keyboard.
- Enter the following command:Check whether the file is created successfully.
cat index.aspx
The preceding steps are as follows:
- Enter the following command:The server accesses index. aspx locally.
curl localhost
Access Error. Restart jexus.
- Enter the following command:Restart jexus
/usr/jexus ./jws start
- Enter the following command:Enter the jexus directory
cd /usr/jexus
- Enter the following command:Restart jexus
./jws start
Reboot error. You must use the sudo command
- Enter the following command:Restart jexus
sudo ./jws start
- Enter the following command:The server accesses index. aspx locally.
curl localhost
The preceding command is as follows:
Access index. asxp from the client
- Enter the following command:View ip
ip addr
-Access 192.168.1.108 in a desktop browser
Inaccessible-enter the command:View Firewall Status
sudo firewall-cmd --state
- Enter the following command:* Disable firewall *
sudo systemctl stop firewalld
- Enter the following command:View Firewall Status
sudo firewall-cmd --state
- Access 192.168.1.108 from the desktop browser again
The entire product and service environment has been set up. Next I will introduce the. NET Core product development.