Get the App
SLTechnology News&Howtos  ›  Servers  › 

Nginx Tomcat measurement system development operation flow

Shulou Source: shulou.com Published: 2022-06-02 17:23:33 10月02日 Update

Since we have written a simple installation of nginx, tomcat, apache-ftpserver and mariadb environment before, we will now record a simple development operation flow of a test system.

1. Backup data

Mkdir / data0/bak/20161024

Cd / data0/zgztest/tomcat01/webapps/ROOT/

Cp-raf * / data0/bak/20161024

two。 Create a date version in / data0/fabu and place the issued content

Cd / data0/fabu

Mkdir date such as (1024)

Put the package to be issued into the established target

Generally apply the development package zgz.war provided by development

Jar-xvf zgz.war (try to solve the problem with unzip + filename when the solution is out of the box)

Or unzip + filename

Ls View Information

If there is a problem, remove the security package.

Rm-rf zgz.war

3. Copy global parameters to the occurrence directory

Cp-raf / data0/zgztest/tomcat01/webapps/ROOT/WEB-INF/classes/custom.properties / data0/fabu/1024/WEB-INF/classes/custom.properties

Cp-raf / data0/zgztest/tomcat01/webapps/ROOT/WEB-INF/fulltest/*

/ data0/fabu/1024/WEB-INF/fulltest/

4. Review the original files

Cd / data0/work/tomcat01/webapps/ROOT

Rm-rf *

Cp-raf / data0/fabu/1024/* / data0/work/tomcat01/webapps/ROOT/

5. Delete the internal memory of the machine

Rm-rf / data0/tomcat01/work/catalina/localhost/*

6. Restart the tomcat service

Sh / data0/work/tomcat01/bin/startup.sh

7. View Port

Lsof-iPUR 8080

Lsof-iPUR 2121

8. Check to see if the web site is accessible

Curl http://localhost:8080

9. If the ftp service is not enabled, restart the ftp service

Sh / data0/work/ftpserver/bin/ftpd.sh / data0/work/ftpserver/res/conf/ftpd.xml&

10. Check what you need to view and the time log

Tar xzvf catalina.tar.gz catalina.out

11. View file content size

Du-hs catalina.tar.gz

twelve。 Enter ftp

Ftp localhost 2121

Admin admin

Mput uploads files from the local computer

Mget downloads files to the local machine

13. View open ports

Ps-ef | grep java

Port number for kill-9 correspondence

14. View real-time logs

Tail-f / data0/work/tomcat01/logs/catalina.out

Tags: File port date process information global size real-time version environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux vpn Docker Shulou Technology