Linux下设置开机自动启动任务
来源:互联网 发布:网络应急预案流程图 编辑:程序博客网 时间:2024/06/08 09:16
1、涉及文件
etc/rc.local
2、在该文件添加你所需要的启动任务即可。注意,任务执行顺序未作测试
3、样本如下, 以以为启动ngnix与tomcat样例
!/bin/sh
#
This script will be executed after all the other init scripts.
You can put your own initialization stuff in here if you don’t
want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
启动ngnix
/mnt/tengine/tengine-2.1.2/sbin/nginx
启动tomcat
/mnt/tomcat7/bin/startup.sh &> /dev/null
启动redis
/usr/local/redis/bin/redis-server /usr/local/redis/redis.conf
启动 mongodb
/mnt/mongodb/mongodb-3.2.10/bin/mongod -f /etc/mongodb.conf
阅读全文
0 0
- Linux下设置开机自动启动任务
- linux下设置开机自动启动
- Linux下设置ORACLE开机自动启动
- Linux下设置Tomcat开机自动启动
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下如何设置开机自动启动程序?
- 在linux下设置开机自动启动程序的方法
- linux下使用chkconfig设置服务开机自动启动
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- linux下如何设置开机自动启动程序
- LeetCode #28
- linux中的文件查找
- iOS在json解析中出现的类似小数溢出的问题
- Nginx介绍
- Android-性能优化-内存优化
- Linux下设置开机自动启动任务
- 左旋转字符串
- 安卓 Material Design规范 底部导航框架介绍
- java建造者模式
- Eclipse+Maven创建webapp项目
- struts2 day03学习笔记
- 64. Minimum Path Sum
- 学习vn.py(1) vn.py环境部署
- openstack+docker设计与实现CI/CD(持续集成/持续交付)