First, install nginx.
First, the installation of four Nginx dependency:
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
Second, download and unzip Nginx
// enter the directory cd / usr / local // Create a folder nginx mkdir nginx // download the tar package cd nginx HTTP wget: // nginx.org/download/nginx-1.13.7.tar.gz // extract the tar -xvf nginx-1.13.7 .tar.gz // delete the installation package (it could save the province) RM -rf nginx-1.13.7.tar.gz
Third, install nginx
// enter nginx directory cd nginx // execute command ./ the configure // make command make // execute the command make install make install
Fourth, configure nginx.conf
// into the file vi /usr/local/nginx/conf/nginx.conf
Modify the port number
Save and exit
Fifth, start nginx
// the next nginx directory cd nginx / sbin // execute ./nginx command ./nginx
Check whether to start nginx
VI. To access outside the network, turn off the firewall
centOS7 turn off the firewall command: systemctl stop firewalld.service
Seven test access nginx
Eight, install vsftpd
// directly install yum -y install vsftpd
Add user ftp
useradd ftpuser
Ftp user to set a password
passwd ftpuser