标签:etc ack lis 重启nginx 安装nginx ngx start lld code
1.换源
2.关闭防火墙
//临时关闭 systemctl stop firewalld //禁止开机启动 systemctl disable firewalld
3.安装nigxn
yum install openssl yum install zlib yum install pcre yum install python-daemon rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-nr-agent-2.0.0-11.el7.ngx.noarch.rpm yum install nginx service nginx start
4.调整配置,修改指向路径
vi /etc/nginx/nginx.conf
***********************************************
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/;
5.重启nginx,使配置生效
service nginx start
标签:etc ack lis 重启nginx 安装nginx ngx start lld code
原文地址:https://www.cnblogs.com/maobuji/p/9621054.html