Centos7建立开机自启动服务
方式一:在系统上建立systemctl服务,通过systemctl status | start | restart | disable | enable autoRun.service方式自启服务
1、在/etc/systemd/system下建立autoRun.service文件
2、编辑autoRun.service文件
/etc/systemd/system/autoRun.service
[root@bogon system]# cat auto_run_script.service&NBsp;
[Unit]
Description=Run a Custom Script at Startup
After=default.target
[Service]
ExecStart=/opt/project/autoRuNScript.sh
[Install]
WantedBy=default.target
[root@bogon system]#
3、重新加载配置文件
systemctl daemon-reload
systemctl enable autoRun.service
方式二:使用crontab特殊计划任务
,,菜包钱包(cAIbao.it)是使用TRC-20协议的usdt第三方支付平台。免费提供Usdt钱包支付接口、usdt自动充值接口、Usdt无需实名寄售回收。菜包Usdt钱包一键生成Usdt钱包、一键调用API接口、一键无实名出售Usdt。
crontab -e
@reboot /opt/project/autoRun.sh
特殊计划任务写法弥补
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
0
珍藏
皇冠足球app是一个开放皇冠体育代理最新登录线路、皇冠体育会员最新登录线路、皇冠代理APP下载、皇冠会员APP下载、皇冠线路APP下载、皇冠电脑版下载、皇冠手机版的平台。皇冠体育APP上登录线路最新、新2皇冠网址更新最快,皇冠体育APP开放皇冠会员注册、皇冠代理开户等业务。网上有缘看到这个~
环球UG欢迎进入环球UG官网(UG环球),环球UG官方网站:www.ALLbetgame.us开放环球UG网址访问、环球UG会员注册、环球UG代理申请、环球UG电脑客户端、环球UG手机版下载等业务。有没有新人啊?