现在的位置: 首页 > 综合 > 正文

My Tips

2014年03月13日 ⁄ 综合 ⁄ 共 232字 ⁄ 字号 评论关闭

1,windows新建服务,以mysql为例

  sc create MySQL binPath= "\"C:\MySQL5\bin\mysqld\" --defaults-file=\"C:\MySQL5\my.ini\" MySQL" type= own start= demand DisplayName= MySQL5

  注意:binPath中需要引号的时候用\转义 所有选项都需要包含=(也就是在=后面空一格再加选项值)

2,windows修改服务配置

  sc config MySQL 其他同上

抱歉!评论已关闭.