Answers for "check nginx status centos 7"

3

nginx syntax check

$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Posted by: Guest on October-23-2020
0

nginx install centos7

sudo yum install epel-release
$ vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=https://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

sudo yum install nginx

sudo systemctl enable nginx
sudo systemctl start nginx
Posted by: Guest on August-19-2021
0

nginx syntax check

$ [sudo] nginx -t
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language