最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Linux下Nginx安装与配置 (yum 软件源下载安装)

运维笔记admin2浏览0评论

一、官网

官网:Advanced Load Balancer, Web Server, & Reverse Proxy - NGINX 

中文文档:Nginx中文文档

二、linux版本:lsb_release -a

三、查看是否有可用的nginx源:yum list|grep nginx

四、安装nginx:yum install nginx

五、启动nginx:systemctl start nginx

六、查看nginx 进程:ps -ef|grep nginx

七、设置开机自启动:systemctl enable nginx;查看设置效果:systemctl list-unit-files|grep enabled

八、nginx常用命令

8.1:systemctl start nginx    ----启动

8.2:systemctl stop nginx    ----停止

8.3:systemctl status nginx    ----查看运行状态

8.4:nginx -s reload        ----重启

注:以上内容仅提供参考和交流,请勿用于商业用途,如有侵权联系本人删除!

发布评论

评论列表(0)

  1. 暂无评论