Linux deployment environment operation (tomcat container) Environment determination: 183.62.156.65 [user name] snsgw [Password] snsgw Port: 3980 package redeployment package:
Use putty to log on to the deployment directory cd/home/snsgw/webapps to disable tomcat www.2cto.com .. /bin/shutdown. sh deletes snsgw and snsgw. war package rm-rf snsgw * confirm whether the ls has been deleted. If no snsgw or snsgw is found. use a file tool to upload the package to the/home/snsgw/webapps directory on the server. After the upload is complete, use ls to check whether the package has been uploaded successfully. Start tomcat .. /bin/startup. sh failed to close tomcat or start tomcat, such as Address already binded, you can check whether the tomcat process has stopped ps-ef | grep tomcat and find that tomcat has failed to be closed (the process information includes/home/snsgw ), kill the kill-9 process id and run the command ps-ef | grep tomcat to check whether the process has been deleted, if it is deleted, try to start the package www.2cto.com to view the deployment log tail-f/home/snsgw/logs/catalina. outmore/home/snsgw/webapps/snsgw/WEB-INF/classes/config. properties modify the system configuration file vi/home/snsgw/webapps/snsgw/WEB-INF/classes/config. propertiesvi/home/snsgw_test/webapps/snsgw/WEB-INF/classes/config. propertieshistory view the previous password operation record database operation command mysql-usns-psns-h172.18.15.108 author maid