本文主要是介绍Liunx Cento 7 安装 nginx,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Liunx Cento 7 安装 nginx 步骤如下
1、安装前准备,下载 rpm 安装文件
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2、进行安装
yum install nginx
查看状态
3、安装成功之后可启动
service nginx start
nginx 配置文件目录
vim /etc/nginx/nginx.conf
nginx文件根目录
cd /usr/share/nginx
启动nginx-> service nginx start
停止nginx-> service nginx stop
重启nginx-> service nginx reload
这篇关于Liunx Cento 7 安装 nginx的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!