本文共 650 字,大约阅读时间需要 2 分钟。
本文所使用的是ubuntu操作系统,或许和其他版本的linux系统存在一定的区别。
其他版本参考:ubuntu 16.4
vsftpd
具体配置方法可参照:
engle@engle025:~$ sudo apt-get install nginx小提示:ubuntu16.4版本可以直接使用 sudo apt install nginx
engle@engle025:~$ sudo vim /etc/nginx/sites-available/default
root /home/xxxx/ngnix;注意: xxxx代表你的用户名。需要将nginx主页拷贝在/home/xxxx/ngnix下。sudo cp /var/www/html/index.nginx-debian.html /home/xxxx/nginx
server_name xxxxx;
index index.php index.html index.htm;
engle@engle025:~$ sudo /etc/init.d/nginx restart注:重启成功会显示[ ok ] Restarting nginx (via systemctl): nginx.service.
直接在浏览器中输入本机IP地址
其实有的东西很简单。当然必须要找到合适的方法。
希望本教程能帮助到你们。