######日常开发中经常需要启动tomcat/nginx/redis等,那么怎么把他们配置成服务,然后随系统自动启动呢?
windows注册服务
找到你需要注册为服务的应用,进入可执行文件夹下,打开cmd
application --service-install [server name] [other args]
redis
redis-server.exe --service-install redis redis.windows.conf
redis-server.exe --service-install redis.windows.conf --loglevel verbose
tomcat
进入bin文件夹下
service.bat install tomcat_1
注册成功后,就可以在windows服务里管理他们了。
如果要卸载他们,执行
service remove [service name]