I haven’t learned much about the server side, and I want to build a development environment temporarily.
Apache has always been used before.Tomcat, put the front-end project code into the webapp directory, and then replace it withwamp(tomcat, in fact) Follow the online tutorials, configure a root directory path in vhost inside, and then add a domain name to place the project below and open the page through a browser.
May I ask aboutHow should nginx be configured? The online tutorials are quite advanced. I hope there are some simple tutorials and I will catch up with them later. (I found that this markdown editor does not have ctrl+Z fallback)
Nginx can be installed with yum, which is the most convenient, but the version is not necessarily the latest.
1. Switch the source to the source of Alibaba Cloud
Download the new CentOS-Base.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
2.yum installation of nginx
yum -y install nginx
3. Start nginx
service nginx start
4. Start up nginx
chkconfig nginx on
4. the configuration file is in /etc/nginx/nginx.conf
The best document isOfficial documentsAlthough it is in English, I must force myself to read it.