Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying the RuoYi Application Before SQL Modification

  1. Package the code.
    1. In VS Code, press Ctrl+` to open the console.

    2. In the console, run mvn clean install -U to clear and update the dependencies.

    3. In the console, run mvn package to build the project and generate a WAR file.

      The WAR package path is ./ruoyi-admin/target/ruoyi-admin.war.

  2. Connect to the tool through SSH.
  3. Start Nginx.
    1. Open the nginx.conf file.
      1
      vim  /home/nginx/conf/nginx.conf
      

    2. Change the reverse proxy port from 8080 to 8088 and save the file.

    3. Start Nginx.
      1
      2
      cd /home/nginx/sbin
      ./nginx
      
  4. Start TongWeb.
    1. Set the environment variables.
      1
      2
      echo 'export JAVA_HOME=/home/bisheng-jdk1.8.0_412' >> /etc/profile
      echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
      
    2. Load the environment variables.
      1
      source /etc/profile
      
    3. Start TongWeb.
      1
      sh /home/TongWeb7.0.4.9_M3_Enterprise_Linux/bin/startserver.sh
      

    4. In the address box of the browser, enter http://devkit01_IP_address:9060/console/ to go to the TongWeb management page.

      Enter the user name thanos and the default password thanos123.com.

    5. Click Modify. After the password is reset, log in again.

    6. Log in to TongWeb again and click Applications.

    7. Undeploy the RuoYi application that has not been reconstructed.

    8. Click Deploy to deploy the reconstructed RuoYi application.

    9. Upload the built WAR package and click Start.

    10. Retain the default settings and click Next.

    11. Select server and click Next.

    12. Click Finish.

    13. After the deployment is complete, ruoyi-admin is displayed on the management page.

    14. Visit http://agent01_IP_address:80/ruoyi-admin to access RuoYi. The default user name and password are admin and admin123, respectively.