[System O & M] -- Precautions for uploading test code to linux servers
Putty.exe
-- Is a Telnet, SSH, rlogin, pure TCP, and serial interface connection software. It is mainly used to connect to linux, execute linux commands, and restart tomcat.
Flashfxp.exe
-- The file transfer tool mainly uses putty to put the compiled class files, web (js, css, jsp/html), and web. xml files on windows to the linux server.
I. Update svn code
Email project name -- Team -- Update
2. Check with the resource library
Check the modified Code and the resource library code again.
3. Package source code
Right-click the modified Code (note the newly added class ?, All modified classes must be packaged. Do not pack only the classes with the * number.) -- select Export.
Select jar file -- next
Export jar package
4. Upload the source code to the server. 1. decompress the packaged Jar package. 2. Open flashfxp.exe and upload the source code.
Connection Server:
Enter the server, user name, password, and port number, and click the link:
After the connection is successful, the following page is displayed:
Submit 3 rddev first. After the submission is successful, restart tomcat and the code runs correctly before submitting 3 rdtest.
Let's take 3rddev as an example to explain how to submit the source code.
Drag the code on the left to the right when submitting the application. At the beginning, you 'd better familiarize yourself with directories, drag them one by one, and then drag and drop the entire folder.
Note:
1) drag the newly added file directly. In the past, we had to back up the replaced files on the right to a local folder to avoid submitting errors, paralyzing the server and disabling startup.
2) automatically generated files cannot be submitted! Example: META-INF
3) do not submit the pom file. If the jar package is missing, directly upload the jar package to the lib file.
·
Putty.exe can be used to restart the server after being dragged.
3. Open putty.exe and restart the server.
For the first startup, enter the host name, port, and save the session (a meaningful name from your own), and select load to save something similar to bookmarks. Mine is factor-wm. You can click open. Then, you can directly double-click factor-wm to log on to putty without entering the host name or port.
Next, we will restart the server:
1. Enter the user name phlc
2. Enter the password hope2013
3. view the Detailed Directory ll
4. Go to a directory named cd 3 rddev.
5. restart tomcat sh restart. sh
Then access the address of the test server.