1、Apache注册为Widows服务
httpd -k install
2、MySQL注册为Widows服务
mysqld --install MySQL --defaults-file="D:\MySQL\MySQL Server 5.1\my.ini"
3、PostgreSQL注册为Widows服务
pg_ctl.exe register -N "postgresql-8.4" -D "D:/PostgreSQL/8.4/data" -w
4、SVN注册为Widows服务
sc create svnserve binPath= "\"D:\Subversion\bin\svnserve.exe\" --service -r \"D:\Subversion\repository\"" displayname= "Subversion Service" depend= Tcpip start= auto sc start svnserve sc stop svnserve sc delete svnserve
5、redis注册为Widows服务
#loglevel 分为debug, notice, warning三级 redis-server.exe --service-install D:\Database\Redis2.8\db\redis.windows.conf --loglevel notice redis-server --service-start redis-server --service-stop redis-server --service-uninstall
6、mongodb注册为Widows服务
mongod --dbpath=D:\Database\MongoDB3\db --logpath=D:\Database\MongoDB3\log\mongo.log --port 27027 --noauth --install -serviceName MongoDB01 --serviceDisplayName MongoDB01 net start MongoDB01