nginx
文章平均质量分 78
Dylan_csdn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
将nginx做成服务并开机启动
[root@localhost ~]#vi /etc/init.d/nginx #新建文件#!/bin/bash# nginx Startup script for the Nginx HTTP Server# it is v.0.0.2 version.# chkconfig: - 85 15# description: Nginx is a high-perform原创 2016-04-25 15:35:48 · 1297 阅读 · 0 评论 -
centos 源码安装Nginx
下载nginx 并创建用户和组 安装所需要的组件[root@localhost ~]# wget http://nginx.org/download/nginx-1.6.2.tar.gz 稳定版[root@localhost ~]# yum install pcre-devel -y 依赖perl扩展的正则表达式[root@localhost ~]# groupadd -r原创 2016-04-25 15:46:57 · 429 阅读 · 0 评论 -
nginx 错误记录
错误1:nginx: [emerg] mkdir() "/var/tmp/nginx/client/" failed (2: No such file or directory)[root@localhost nginx-1.6.2]# nginxnginx: [emerg] mkdir() "/var/tmp/nginx/client/" failed (2: No such file o原创 2016-04-25 15:50:14 · 1178 阅读 · 0 评论 -
nginx 编译详细参数
–prefix= 指向安装目录–sbin-path 指向(执行)程序文件(nginx)–conf-path= 指向配置文件(nginx.conf)–error-log-path= 指向错误日志目录–pid-path= 指向pid文件(nginx.pid)–lock-path= 指向lock文件(nginx.lock)(安装文件锁定,防止安装文件被别人利用,或自己误操作。)–原创 2016-04-25 15:53:47 · 445 阅读 · 0 评论 -
nginx 多个站点配置
服务器地址:192.168.1.231域名:test1.com 目录:/www/test1.com域名:test2.com 目录:/www/test2.com该配置思路把2个站点 test1.com, test2.com 放到 nginx 可以访问的目录 /www/给每个站点分别创建一个 nginx 配置文件 test1.com.conf,test2.com.conf,原创 2016-04-25 18:03:17 · 1880 阅读 · 0 评论
分享