Install jexus5.8.2 on Centos7

Source: Internet
Author: User

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
  • 1
  • 1

-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
  • 1
  • 1
  • Enter the following command:Install jexus on the server
wget https://www.linuxdot.net/down/jexus-5.8.2-x64.tar.gz
  • 1
  • 1
  • Enter the following command:Test whether the installation is successful
ll
  • 1
  • 1
  • Enter the following command:Test the file name after Jexus is downloaded to the server
ls
  • 1
  • 1

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
  • 1
  • 1
  • Enter the following command:* Extract jexus to the/usr directory *
sudo tar -xzvf jexus-5.8.2-x64.tar.gz /usr
  • 1
  • 2
  • 1
  • 2

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
  • 1
  • 1
  • Enter the following command:* Continue searching for the sudoers file path *
ls /etc/sudoers
  • 1
  • 1
  • Enter the following command:View sudoers file content
 cat /etc/sudoers
  • 1
  • 1
  • Enter the following command:Switch to the root user
 su root
  • 1
  • 1

The preceding command is as follows:

  • Enter the following command:Modify sudoers file content
 vi /etc/sudoers
  • 1
  • 1
  • Enter the following command:Enter the editing status
Press I on the keyboard
  • 1
  • 1
  • Enter the following command:Added a user who can execute the root command.
 automa ALL=(ALL) ALL 
  • 1
  • 1
  • Enter the following command:Exit edit status
Press ESC on the keyboard
  • 1
  • 1
  • Enter the following command:Save changes
 :wq;
  • 1
  • 1
  • Enter the following command:Confirm Modification
Press Enter on the keyboard.
  • 1
  • 1

Modify as follows:

  • Enter the following command:Switch to automa user
 su automa
  • 1
  • 1
  • Enter the following command:Switch to automa user
 su automa
  • 1
  • 1
  • Enter the following command:* Extract jexus to the/usr directory *
sudo tar -xzvf jexus-5.8.2-x64.tar.gz -C /usr
  • 1
  • 2
  • 1
  • 2
  • Enter the following command:* Check whether the decompression is successful *
ls /usr/jexus
  • 1
  • 2
  • 1
  • 2

The preceding commands are as follows:

Start jexus
  • Enter the following command:Enter the jexus root directory
 cd /usr/jexus
  • 1
  • 1
  • Enter the following command:Start jexus
 sudo ./jws start
  • 1
  • 1
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
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4
  • Enter the following command:Test whether the folder is successfully created.
 ls
  • 1
  • 1

The preceding command:

  • Enter the following command:Test whether the folder is successfully created.
 ls
  • 1
  • 1
  • Enter the following command:Modify the default folder permission
 sudo chown -R automa:root
  • 1
  • 1
  • Enter the following command:Go to the var/www folder
 cd /var/www
  • 1
  • 1
  • Enter the following command:Modify the default folder permission
 sudo chown -R automa:root default
  • 1
  • 1
  • Enter the following command:Go to the default folder
 cd default
  • 1
  • 1
  • Enter the following command:Create an index. aspx File
 vi index.aspx
  • 1
  • 1
  • Enter the following command:Enter the editing status
Press I on the keyboard
  • 1
  • 1
  • Enter the following command:Add code
<%@Page Language="C#"%><%=DateTime.Now.ToString()%>
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3
  • Enter the following command:Exit edit status
Press ESC on the keyboard
  • 1
  • 1
  • Enter the following command:Save changes
 :wq
  • 1
  • 1
  • Enter the following command:Confirm Modification
Press Enter on the keyboard.
  • 1
  • 1
  • Enter the following command:Check whether the file is created successfully.
 cat index.aspx
  • 1
  • 1

The preceding steps are as follows:

  • Enter the following command:The server accesses index. aspx locally.
 curl localhost
  • 1
  • 1

Access Error. Restart jexus.

  • Enter the following command:Restart jexus
 /usr/jexus ./jws start
  • 1
  • 1
  • Enter the following command:Enter the jexus directory
 cd /usr/jexus
  • 1
  • 1
  • Enter the following command:Restart jexus
 ./jws start
  • 1
  • 1

Reboot error. You must use the sudo command

  • Enter the following command:Restart jexus
 sudo ./jws start
  • 1
  • 1
  • Enter the following command:The server accesses index. aspx locally.
 curl localhost
  • 1
  • 1

The preceding command is as follows:

Access index. asxp from the client
  • Enter the following command:View ip
 ip addr
  • 1
  • 1

-Access 192.168.1.108 in a desktop browser

Inaccessible-enter the command:View Firewall Status

 sudo firewall-cmd --state
  • 1
  • 1
  • Enter the following command:* Disable firewall *
 sudo systemctl stop firewalld
  • 1
  • 1
  • Enter the following command:View Firewall Status
 sudo firewall-cmd --state
  • 1
  • 1

  • 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.