Apache、MySQL及Subversion Windows服务安装

  下载免安装的Apache、MySQL和Subversion,我们需要手动将其添加为Windows服务以实现开机自启动。

1. Apache
httpd -k install[ -n “Apache2.2”][ -f “conf/httpd.conf”]
httpd.exe在bin目录下,Apache2.2为服务名(可省),conf/httpd.conf为配置文件名(可省)。

2. MySQL
sc create MySQL binpath= “\”D:\Server\MySQL5.1\bin\mysqld\” –defaults-file=\”D:\Server\MySQL5.1\my.ini\” MySQL” start= auto
sc为Windows添加/删除服务的工具,MySQL为服务名,D:\Server\MySQL5.1\bin\mysqld为mysqld的路径,D:\Server\MySQL5.1\my.ini为配置文件,start= auto表示自动启动。

3. Subversion
sc create svnserve binpath= “\”D:\Server\SVN1.5\bin\svnserve.exe\” –service –root \”D:\Server\SVN1.5\repos\””[ displayname= “Subversion”] depend= tcpip start= auto
svnserve为服务名,Subversion为显示名称(可省),depend= tcpip表示此服务依赖于TCP/IP服务。

原创文章,转载请注明出处:代码人生https://www.code-life.com/
本文链接地址:https://www.code-life.com/?p=129

发表评论

您的电子邮箱地址不会被公开。