Nginx 是一款高性能的 HTTP 服务器和反向代理服务器,以下是常见系统的安装步骤:

🐧 Ubuntu/Debian 系统

  1. 更新包列表
    sudo apt update
    
  2. 安装 Nginx
    sudo apt install nginx
    
  3. 启动服务
    sudo systemctl start nginx
    
  4. 设置开机自启
    sudo systemctl enable nginx
    

🐄 CentOS/RHEL 系统

  1. 安装 EPEL 仓库
    sudo yum install epel-release
    
  2. 安装 Nginx
    sudo yum install nginx
    
  3. 启动服务
    sudo systemctl start nginx
    

🧠 Windows 系统

  1. 下载安装包:Nginx Windows 官方发布
  2. 解压并运行 nginx.exe
  3. 访问 http://localhost 验证安装

📌 提示:安装完成后可前往 Nginx 配置文档 学习基本配置。

Nginx_logo

📚 扩展阅读