Chinaunix首页 | 论坛 | 博客
  • 博客访问: 622657
  • 博文数量: 142
  • 博客积分: 116
  • 博客等级: 入伍新兵
  • 技术积分: 1445
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-28 08:37
文章分类

全部博文(142)

文章存档

2017年(7)

2016年(57)

2015年(48)

2014年(30)

我的朋友

分类: Web开发

2014-05-06 09:55:24

安装cygwin时选中apache httpd。
安装cygserver。(好像叫cygrunserver)
执行/usr/bin/cygserver-config。会在windows的服务中生成CYGWIN cygserver

  1. $ /usr/bin/cygserver-config
  2. Generating /etc/cygserver.conf file
  3. Warning: The following function requires administrator privileges!
  4. Do you want to install cygserver as service?
  5. (Say "no" if it's already installed as service) (yes/no) yes
  6. The service has been installed under LocalSystem account.
  7. To start it, call `net start cygserver' or `cygrunsrv -S cygserver'.
  8. Further configuration options are available by editing the configuration
  9. file /etc/cygserver.conf. Please read the inline information in that
  10. file carefully. The best option for the start is to just leave it alone.
  11. Basic Cygserver configuration finished. Have fun!
启动cygserver

  1. $ net start cygserver
  2. CYGWIN cygserver 服务正在启动 .
  3. CYGWIN cygserver 服务已经启动成功。
配置/etc/apache2/httpd.conf并启动apache

  1. $ /usr/sbin/apachectl2 -k start


如果未启动cygserver直接启动apache,会发生下面错误。

  1. /usr/sbin/apachectl2: line 78: 3088 Bad system call



阅读(1453) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~