软件:nginx

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
软件:nginx [2025/12/07 21:54] admin软件:nginx [2026/01/02 00:57] (当前版本) – 外部编辑 127.0.0.1
行 31: 行 31:
 <code nginx> <code nginx>
 #卸载apache #卸载apache
-apt purge apache2 apache2-bin apache2-data apache2-utils+sudo apt purge apache2 apache2-bin apache2-data apache2-utils
  
 #安装Nginx环境依赖 #安装Nginx环境依赖
-apt -y install curl gnupg2 ca-certificates lsb-release debian-archive-keyring+sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
 #安装 #安装
-apt -y install nginx+sudo apt install nginx
 #启动 #启动
 systemctl start nginx systemctl start nginx
行 66: 行 66:
         root /var/www/html;         root /var/www/html;
         try_files $uri =404;         try_files $uri =404;
-        fastcgi_pass unix:/run/php/php8.2-fpm.sock;+        fastcgi_pass unix:/run/php/php8.4-fpm.sock;
         include fastcgi_params;         include fastcgi_params;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
行 155: 行 155:
     -keyout localhost.key \     -keyout localhost.key \
     -out localhost.pem \     -out localhost.pem \
-    -subj "/C=CN/ST=Beijing/L=Beijing/O=MyOrg/CN=localhost"+    -subj "/C=CN/ST=Beijing/L=Beijing/O=MyOrg/CN=example.com"
 </code> </code>
  
  • 软件/nginx.1765115652.txt.gz
  • 最后更改: 2026/01/02 02:07
  • (外部编辑)