安装Cygwin时选择Apache-2.2进行安装
vi ~/.bashrc 添加如下内容(或者在windows环境变量里面配置)
CYGWIN=server
export CYGWIN
执行 . ~/.bashrc 让其生效
执行cygserver-config
并启动cygserver,
net start cygserver
最后执行 /usr/sbin/apachectl2 start 启动Apache
打开浏览器访问http://localhost 检查, it works!
问题: 配置apache为自动启动尚有问题
cygrunsrv.exe -I httpd -d "CYGWIN httpd" -p /usr/sbin/httpd2.exe -a -k -e "CYGWIN=server"
vi ~/.bashrc 添加如下内容(或者在windows环境变量里面配置)
CYGWIN=server
export CYGWIN
执行 . ~/.bashrc 让其生效
执行cygserver-config
并启动cygserver,
net start cygserver
最后执行 /usr/sbin/apachectl2 start 启动Apache
打开浏览器访问http://localhost 检查, it works!
问题: 配置apache为自动启动尚有问题
cygrunsrv.exe -I httpd -d "CYGWIN httpd" -p /usr/sbin/httpd2.exe -a -k -e "CYGWIN=server"