2020-12-18 myluzh
Linux
0x01安装Nginx
安装Nginx
sudo apt-get install nginx
启动Nginx服务
sudo /etc/init.d/nginx start
停止Nginx服务
sudo /etc/init.d/nginx stop
加载最新配置
sudo /etc/init.d/nginx reload
默认配置文件位置简单配置
/etc/nginx/sites-enabled/default
server {
listen 80;
server_name localhost;
root /var/www/html;
location / {
index index.php index.html;
#autoindex off;
}
#开启php
location ~ \.php(.*)$ {
#"netstat -npl | grep php"可以找到php run路径
...
阅读全文>>
标签: ubuntu lnmp
评论(0)
(733)