在cygwin上运行apache2

简介: cygwin上运行linux软件是很方便啦,不过像httpd这样的后台守护进程,还需要一些帮助才行。安装cygwin时选中apache httpd。

cygwin上运行linux软件是很方便啦,不过像httpd这样的后台守护进程,还需要一些帮助才行。

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

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

启动cygserver

$ net start cygserver
CYGWIN cygserver 服务正在启动 .
CYGWIN cygserver 服务已经启动成功。

配置/etc/apache2/httpd.conf并启动apache

$ /usr/sbin/apachectl2 -k start

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

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

目录
相关文章
|
2月前
|
运维 Linux Apache
LAMP架构调优(二)——修改Apache运行用户
LAMP架构调优(二)——修改Apache运行用户
20 0
|
2月前
|
前端开发 Java Apache
Apache Zeppelin系列教程第七篇——运行paragraph的整个流程分析
Apache Zeppelin系列教程第七篇——运行paragraph的整个流程分析
49 0
|
11月前
|
缓存 前端开发 JavaScript
PHP - Laravel 创建项目到服务器(nginx、apache)运行(附带目录结构)
PHP - Laravel 创建项目到服务器(nginx、apache)运行(附带目录结构)
287 0
|
7月前
|
资源调度 前端开发 开发工具
apache-incubator-streampark源码编译本地运行
apache-incubator-streampark源码编译本地运行
89 0
|
2月前
|
消息中间件 Java Kafka
Apache Hudi + Flink作业运行指南
Apache Hudi + Flink作业运行指南
190 1
|
2月前
|
SQL 并行计算 大数据
【大数据技术攻关专题】「Apache-Flink零基础入门」手把手+零基础带你玩转大数据流式处理引擎Flink(基础加强+运行原理)
关于Flink服务的搭建与部署,由于其涉及诸多实战操作而理论部分相对较少,小编打算采用一个独立的版本和环境来进行详尽的实战讲解。考虑到文字描述可能无法充分展现操作的细节和流程,我们决定以视频的形式进行分析和介绍。因此,在本文中,我们将暂时不涉及具体的搭建和部署步骤。
520 3
【大数据技术攻关专题】「Apache-Flink零基础入门」手把手+零基础带你玩转大数据流式处理引擎Flink(基础加强+运行原理)
|
2月前
|
监控 Apache 开发工具
Apache Flink 1.12.2集成Hudi 0.9.0运行指南
Apache Flink 1.12.2集成Hudi 0.9.0运行指南
86 0
|
2月前
|
Java
apache-incubator-streampark源码编译本地运行(七)
apache-incubator-streampark源码编译本地运行(七)
65 1
|
7月前
|
Java Maven Windows
apache-incubator-streampark源码编译本地运行(三)
apache-incubator-streampark源码编译本地运行(三)
70 0
apache-incubator-streampark源码编译本地运行(三)
|
2月前
apache-incubator-streampark源码编译本地运行(六)
apache-incubator-streampark源码编译本地运行(六)
45 0

推荐镜像

更多