Debian增加开机启动
发表于:2024-10-01 作者:千家信息网编辑
千家信息网最后更新 2024年10月01日,1、增加服务文件vi /etc/systemd/system/rc-local.service[Unit]Description=/etc/rc.localConditionPathExists=/e
千家信息网最后更新 2024年10月01日Debian增加开机启动
1、增加服务文件
vi /etc/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.local
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
2、增加rc.local文件
vi /etc/rc.local
#!/bin/sh -e
exit 0
添加权限:
chmod +x /etc/rc.local
设置到系统启动:
systemctl enable rc-local
启动脚本:
systemctl start rc-local.service
检查服务状态:
systemctl status rc-local.service
你已经增加了系统启动脚本,可以在这个脚本里面增加你想启动的程序,例如
cd /home/gst/tomcat/bin
./strat.sh
转载于:http://mingli.muhuolong.cn/
脚本
文件
系统
服务
权限
状态
程序
检查
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
深圳鸿艺网络技术有限公司
广州学校饭堂自助点餐软件开发
五常软件开发者在线咨询
斗罗大陆武魂觉醒选哪个服务器
工作三年自学软件开发
网络安全具有什么基本特征
软件开发生命周期瀑布型
先学数据库 先学.net
相册管理服务器
开展网络安全宣传讲座
中国时间同步服务器
网络安全 靠大家手抄报
南岸区提供软件开发流程公司
网络安全应急演练会议纪要
烽火科技武汉 软件开发
计算机网络安全内容摘录
普华永道网络安全怎么样
网络安全 课程 内容
苹果手机做打印服务器
云手机服务器怎么部署
无线网络技术导论第二版电子
方舟生存进化建服务器
wlan网络技术实践题
服务器第三方
软件开发代码编程直播
嵌入式软件开发复习题
服务器管理 php网站
常州市网络安全协会
国泰安数据库找公司总资产
江苏网络安全知识教育题目