ubuntu 安装启动nginx, root配置
来源:互联网 发布:考研笔记知乎 编辑:程序博客网 时间:2024/06/06 01:21
安装 sudo apt-get install nginx
启动 sudo /etc/init.d/nginx start
停止 sudo sudo /etc/init.d/nginx stop
root配置 sudo vim /etc/nginx/sites-available/default
设置文件路径,修改这个字段的值 root /usr/share/nginx/www;
设置日志,修改这个字段 access_log /var/log/nginx.log;
关闭favicon.ico找不到的日志,修改这个:
location = /favicon.ico {
log_not_found off;
}
0 0
- ubuntu 安装启动nginx, root配置
- Ubuntu Nginx安装启动
- Ubuntu安装配置Nginx
- Ubuntu nginx 开机启动配置
- ubuntu下安装启动nginx
- ubuntu配置从root启动方法
- Ubuntu Server启动root并配置远程登陆
- Nginx 安装/配置/启动/关闭
- ubuntu下nginx安装配置
- ubuntu下安装配置nginx
- Ubuntu下安装配置nginx
- ubuntu安装nginx及配置nginx
- Nginx自启动脚本(ubuntu 安装版)
- ubuntu 安装 nginx以及apache安装配置
- ubuntu 安装 nginx以及apache安装配置
- nginx (1):ubuntu下安装启动nginx
- nginx 配置root运行
- nginx配置root, index
- 腾讯面试题:服务器内存1G,有一个2G的文件,里面每行存着一个QQ号(5-10位数),怎么最快找出出现过最多次的QQ号。
- 做网页的网址
- oracle 常用命令
- quick-cocos2dx 如何派生一个新类
- test8-3(长方柱类)
- ubuntu 安装启动nginx, root配置
- IIS部署webservice以及常见问题总结
- build
- iOS中UITextField 使用全面解析
- String和Date、Timestamp之间的转换
- 《黑马程序员》 集合Collection ArrayList第十四天
- IIS6.0 ASP.NET2.0 403错误 解决办法
- ado常量大全
- Linux下访问SQL的应用及移植