nginx

Ubuntu18.04上安装Linux、Nginx、MySQL和PHP

安装nginx $ sudo apt update $ sudo apt install ngi 安装php并配置 sudo apt install php-fpm php-mysql 改写nginx下的sites-enabled中的配置文件 server { listen 80; root 网站地址; index index.php index.html index.htm index.nginx-debian.html; server_name localhost; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix: ...