ngnix disposed a front end of the separation project ssm

Here I pulled the front and rear ends of a separate project on github, ssm framework of the project ready for deployment on the same server

Deploy 1 project

Because the package is war, first install tomcat, this is not to say, the tomcat / webapps / ROOT directory of all the files emptied the bag on the war under tomcat / webapps / ROOT directory,

Decompressing by jar -xvf XXXXX.war. Then tomcat / conf / server.xml tomcat start to see the port, there is a need to change the port's own words (be sure to remember this port server configuration allows inbound).

Then go tomcat / bin to find startbat.sh start the project.

By npm packed into the front dist folder that throwing under which the directory server, but remember the path.

Can look through the rear end of the tool is not already able to access the tool by adjusting the interface is not as long as the 404,

If you have questions to tomcat / logs / catalina.out view the boot log Report what is wrong,

Did not start to go see an error firewalls and server port have no interceptions

This time by tomcat / bin below shutdown.sh is no way to close the error to start the tomcat

Only through ps -ef | grep tomcat then kill -9 forced to shut down the port number

I will not elaborate here.

 

2.nginx installation   Reference: https://blog.csdn.net/t8116189520/article/details/81909574

Now intends to return to the port 80 to the user interface I configured tomcat 8989 port   

 Then start ngnix on the line

 Start code format: nginx installation directory address -c nginx profile address

[root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx  -c  /usr/local/nginx/conf/nginx.conf

Guess you like

Origin www.cnblogs.com/mrxiab/p/11101599.html