The target machine has no network, and you can only download various Nginx dependencies and install it manually.
-
Download the dependent environment and library you need
link:https://pan.baidu.com/s/1u6TCHMTSNJYCWXTfmjRSxA
extract code:nikc -
After decompression, it is transmitted to the/usr/local of the Linux system
-
cd to the GCC directory, execute the installation command
rpm -Uvh *.rpm --nodeps --force
- CD to the GCC-C ++ directory, execute the installation command
rpm -Uvh *.rpm --nodeps --force
- After the installation is completed, the following command test is successful, and the version number appears to be successful
gcc -v
g++ -v
- Install PCR
tar -zxvf pcre-8.35.tar.gz
./configure
make
make install
- Install libtool, upload libtool-2.4.2.tar.gz to the server, CD to execute commands in the directory
tar -zxvf libtool-2.4.2.tar.gz
./configure
make
make install
- Install nginx, upload nginx-1.13.9.tar.gz to the server, CD to the directory execute commands to execute commands
tar -zxvf nginx-1.13.9.tar.gz
./configure
make
make install
- CD to Nginx directory/usr/local/nginx/sbin
./nginx -s stop //Stop service./nginx -s reload
./nginx //startup service
netStat-tunlp|grep 80 //port occupation and view