[ubuntu]How to set runing in boot system

2015-12-24 写技术

# wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-server
# mv redis-server /etc/init.d/redis-server
# chmod +x /etc/init.d/redis-server 
# update-rc.d redis-server defaults
 Adding system startup for /etc/init.d/redis-server ...
   /etc/rc0.d/K20redis-server -> ../init.d/redis-server
   /etc/rc1.d/K20redis-server -> ../init.d/redis-server
   /etc/rc6.d/K20redis-server -> ../init.d/redis-server
   /etc/rc2.d/S20redis-server -> ../init.d/redis-server
   /etc/rc3.d/S20redis-server -> ../init.d/redis-server
   /etc/rc4.d/S20redis-server -> ../init.d/redis-server
   /etc/rc5.d/S20redis-server -> ../init.d/redis-server

标签: ubuntu

发表评论:

Powered by anycle 湘ICP备15001973号-1