重装windows764 位后后怎样将apache mysql加入系统服务

软件发布|下载排行|最新软件

当前位置:首页操作系统windows系列

重装windows764 位后后怎样将apache mysql加入系统服务

  2020-12-08 我要评论
重装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"

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们