Nginx online installation process (Linux only)

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43135618/article/details/100538931

Setting up an installation depot:

Nginx enter the official website, follow the instructions in the new file nginx.repo /etc/yum.repos.d directory

touch nginx.repo

According to the official website of the requirements, insert the following in nginx.repo file:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enable=1

// Note centos in the third row for the installation of the system, according to the actual situation to write (ubuntu ......); 6 represents the major version number

The installation instructions (to ensure smooth network)

yum install nginx

Middle prompted, enter yes you can

Nginx start the service after the installation is complete

service nginx start

// start to open, restart the restart, stop stop

View ngnix running state

netstat -tlnup

or

ps -aux |grep nginx

// netstat Print network system status information

Guess you like

Origin blog.csdn.net/weixin_43135618/article/details/100538931