eecdc 发表于 2014-3-28 11:51:09

重装windows系统后,如何重新将apache,mysql加入系统服务

重装windows7 64 位后,想把mysql加到系统服务里面,

命令如下:

mysqld.exe --install,报以下错误:

Install/Remove of the Service Denied!



解决方案:

此错误是由于当前用户没有管理员权限造成的。开始——CMD.exe——右键,以管理员身份运行,然后按照以以下命令即可将mysql加到系统服务里面去

mysqld.exe --install

httpd.exe-k install

进阶:
1、mysql5.1以前版本用 mysqld-nt

2、指定服务名称 启动脚本

mysqld.exe --install mysql5.5--defaults-file="D:\mysql5.5\my.ini"

httpd.exe-k install-n "Apache2.2" -f “D:\apache2.2\conf\httpd.conf



3、启动\停止服务

net start mysql

net start apache2.2

net stop mysql

net stop apache2.2

3、删除服务

mysqld.exe --remove

httpd.exe -k uninstall 或者 httpd.exe -k uninstall -n "Apache2.2"





页: [1]
查看完整版本: 重装windows系统后,如何重新将apache,mysql加入系统服务