Chinaunix首页 | 论坛 | 博客
  • 博客访问: 93561
  • 博文数量: 14
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-31 16:17
文章分类

全部博文(14)

文章存档

2013年(14)

我的朋友

发布时间:2013-10-28 11:29:24

以下内容保存为文件nginx到/etc/init.d/目录下?
?#!/bin/bash
# nginx Startup script for the Nginx HTTP Server
#
# chkconfig: - 85 15
# description: Nginx is a high-performance web and proxy server.
# It has a lot of features, but it's not for everyone.
# processname: nginx
# pidfile: /var/run/nginx.pid
# config: /usr/local/nginx/conf/nginx.conf
nginxd=/usr/local/nginx/sbin/nginx
nginx_config=/usr/local/nginx/conf/nginx.conf
nginx_pid=/usr/local/nginx/logs/nginx.p......【阅读全文】

阅读(1409) | 评论(0) | 转发(0)

发布时间:2013-10-28 11:24:07

chkconfig --add httpd Error服务不支持

Apache无法自动启动,
1、将apachectl文件拷贝到/etc/rc.d/init.d 中,
cp /usr/local/apache/bin/apachectl /etc/init.d/httpd //如果有其他的版本的Apache存在,也可以直接覆盖掉

此时Apache就可以自动启动了。
2、 运行chkconfig --list,发现没有linux服务列表中httpd,通过chkconfig --add httpd来添加,但是提示:httpd服务不支持 chkconfig。需要编辑/etc/rc.d/init.d/httpd,添加以下注释信息:
# chkconfig: 345 85 15
# description: Activates/Deactivates Apache Web Server
第一行3个数字参数意义分别为:哪些Linux级别需要启动httpd(3,4,5);启动序号(85);关闭序号(15)。
保存后执行:c......【阅读全文】

阅读(1569) | 评论(0) | 转发(0)

发布时间:2013-10-25 11:18:57

安装使用的是nginx最新稳定版。一开始按常规的指定编译参数:

./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre/ --with-zlib=/usr/local/zlib --with-http_stub_status_module --with-http_ssl_module^C


? 到make阶段报错: make
?make -f objs/Makefile
make[1]: Entering directory `/usr/local/src/nginx-0.8.54′
cd /usr/local/pcre /
&& if [ -f Makefile ]; then make distclean; fi /
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " /
./configure –disab......【阅读全文】

阅读(15542) | 评论(0) | 转发(0)

发布时间:2013-10-17 15:19:51

post-commit(利用SVN的钩子post-commit同步测试服务器代码)

/snv仓库目录/hooks

cp post-commit.tmpl post-commit
chown apache.apache post-commit

修改post-commint

export LANG="en_US.UTF-8"
svn up /var/www/html/ben/
chmod a+x post-commit

chown -R apache.apache /web目录(确保web目录能访问,否则post-commit不会正常工作) ......【阅读全文】

阅读(2090) | 评论(0) | 转发(0)

发布时间:2013-10-16 15:22:01

# vim /etc/profile
在最后,添加:
export PATH="/usr/local/webserver/mysql/bin:$PATH"
保存,退出,然后运行:
#source /etc/profile
不报错则成功。......【阅读全文】

阅读(691) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册