网站首页 > 技术教程 正文
1. 添加源
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2. 安装Nginx
sudo yum install -y nginx
3. 启动
sudo systemctl start nginx.service
4. 查看版本
nginx -v
5. 查看nginx安装目录
ps -ef | grep nginx
6. 检查配置文件
nginx -t
7. 启动
systemctl start nginx.service
8. 停止
systemctl stop nginx.service
9. 重启
systemctl restart nginx.service
10. 设置开机自启动
systemctl enable nginx.service
11. 停止开机自启动
systemctl disable nginx.service
12. 查看当前状态
systemctl status nginx.service
13. 查看所有已启动的服务
systemctl list-units --type=service
猜你喜欢
- 2024-10-10 Nginx:为什么高性能?Master&worker如何配合?负载均衡了解吗?
- 2024-10-10 使用 NGINX 在 Linux 上部署 ASP.NET Core 应用程序
- 2024-10-10 Nginx三大功能(nginx功能作用)
- 2024-10-10 Nginx系列篇二:linux搭建Nginx负载均衡
- 2024-09-12 只需要一篇文章读透nginx源码(nginx解析)
- 2024-09-12 Linux下Nginx安装(在linux中安装nginx可以用哪些命令)
- 2024-09-12 Fedora Linux 中安装 nginx(linux安装nginx详细步骤)
- 2024-09-12 Linux新手入门系列:安装nginx(linux安装nginx详细教程)
- 2024-09-12 Nginx负载均衡配置、限流配置、Https配置详解
- 2024-09-12 Linux上安装Nginx服务器(linux安装nginx命令)
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- 下划线是什么 (87)
- 精美网站 (58)
- qq登录界面 (90)
- nginx 命令 (82)
- nginx .http (73)
- nginx lua (70)
- nginx 重定向 (68)
- Nginx超时 (65)
- nginx 监控 (57)
- odbc (59)
- rar密码破解工具 (62)
- annotation (71)
- 红黑树 (57)
- 智力题 (62)
- php空间申请 (61)
- 按键精灵 注册码 (69)
- 软件测试报告 (59)
- ntcreatefile (64)
- 闪动文字 (56)
- guid (66)
- abap (63)
- mpeg 2 (65)
- column (63)
- dreamweaver教程 (57)
- excel行列转换 (56)
本文暂时没有评论,来添加一个吧(●'◡'●)