centos7安装nginx

1、更新源

shell 复制代码
sudo yum install -y epel-release
sudo yum -y update

2、安装nginx

shell 复制代码
sudo yum install -y nginx

3、操作nginx

shell 复制代码
# 启动
systemctl start nginx
# 停止
systemctl stop nginx
# 重启
systemctl restart nginx
# 查看状态
systemctl status nginx
# 开机启动
systemctl enable nginx
# 禁止开机启动
systemctl disable nginx
相关推荐
caimouse5 分钟前
ReactOS 图形系统分析(3):显示驱动 DDI framebuf.dll
linux·运维·网络
跨境小彭18 分钟前
Temu运营优化方案:活动库存自动化管控,解决断流、超卖与权重下跌问题
大数据·运维·人工智能·自动化·跨境电商·temu·temu电商运营
漫谈数据智理26 分钟前
IDS-RAM 如何支撑数据空间走向可
大数据·运维·微服务
佳児素花痴╮27 分钟前
网络问题与基础理论
运维·服务器·网络
tanglinS1 小时前
工业陶瓷在半导体设备里都用哪里?氮化铝基板与氮化硅结构件的静电无尘角色
大数据·运维·人工智能·自动化·材质
highreport1 小时前
HighReport报表工具定时调度和邮件定时发送
运维·服务器·数据库
TonyLee0171 小时前
Claude Code + DeepSeek:服务器安装与使用笔记
linux·服务器·deepseek·claude code
St_rive1 小时前
Pytest skip&&skipif跳过⽤例
运维·服务器·pytest
buhuizhiyuci1 小时前
【Linux 篇】数字世界的水流蓄水池 —— IO 缓冲区机制深度实战解析
linux·运维·服务器·c++
贝锐1 小时前
多校区互通、临时联网、远程运维,校园网络升级用蒲公英更省心!
运维·组网