1. Linux Project deployment instructions
1.1 Deployment flowchart
1.2 Linux install Mysql database
Please refer to the blog document for details , Database installation .
1.3 modify jt-manage Configuration of
1.3.1 Modify the upload address of the picture
explain : stay Linux Directory specifies a directory where images are stored
1.3.2 Project packaging and release
1.3.3 Upload war Package file
1.3.4 Code changes
remaining problems :
1.3.5 Project release
adopt IP You can visit the address .
1.4 tomcat Cluster deployment
1.4.1 war Package deployment instructions
1.4.2 How to execute multiple commands
- You can use & operator Continue to execute commands
1.4.3 How to shut down the server
ps -ef | grep java
command 2: Retrieve only java service jps
Command specification :
1."|" The Conduit The result of the previous query of the pipeline , As a parameter after the pipe ( Conditions ) To operate .
- kill Kill process
kill PID Number Normal shutdown process ( Weak closing )
kill -15 PID Number Must close , But you can do the following .
kill -9 PID Number closed , No time for follow-up tasks .
1.4.4 About Linux Background start
explain : adopt java -jar 8081.war Way to start , It can only be performed at the front desk , If you close the linked terminal , Then the program will close with it , So it needs to be turned on Linux Background operation .
1.4.5 About view command learning
cat Output all the contents of the file
more Output all the contents of the document , Paging output , Space for the next screen ,q sign out
less Usage and more identical , Only by PgUp、PgOn Key to control
tail Used to display the number after the file , Frequently used
tail -10 nginx.conf see nginx.conf Last 10 That's ok
tail –f nginx.conf Dynamic view log , It is convenient to view the new information in the log
ctrl+c End of view
1.5 The script to start tomcat The server
explain : Linux The script in is generally used in shell Script .
1. edit start.sh Script file for
2. Specify the header of the script
3. The content of the specified script .
4. Execute the script