当前位置:网站首页>centos7.5 设置Mysql开机自启动
centos7.5 设置Mysql开机自启动
2022-08-09 10:45:00 【猿小飞】
文件会在linux系统各项服务都启动完毕后再被运行,可以将脚本路径加到该文件里
/etc/rc.d/rc.local
1.确保权限
chmod +x /etc/rc.d/rc.local
2.创建mysql启动脚本
vi MysqlStart.sh
脚本的内容:
#!/bin/bash
service mysql start
给该脚本权限
chmod +x MysqlStart.sh
3.编辑/etc/rc.d/rc.local文件
vi /etc/rc.d/rc.local
/path/MysqlStart.sh
4.最后重启,试试效果
reboot
微信扫一扫:关注我个人订阅号“猿小飞”,更多精彩文章在这里及时发布:
边栏推荐
- 深度学习--神经网络(基础讲解)
- 好久没上博客了,好长时间没有进展了
- unix环境编程 第十五章 15.9 共享存储
- Official explanation, detailed explanation and example of torch.cat() function
- RPN principle in faster-rcnn
- 1004 成绩排名 (20 分)
- 【 original 】 VMware Workstation implementation Openwrt soft routing, the ESXI, content is very detailed!
- VBA实战(11) - 工作表(Sheet) 操作汇总
- 绝了,这套RESTful API接口设计总结
- 深度学习--生成对抗网络(Generative Adversarial Nets)
猜你喜欢
【报错记录】解决华擎J3455-ITX不插显示器无法开机的问题
机器学习-逻辑回归(logistics regression)
Since I use the HiFlow scene connector, I don't have to worry about becoming a "dropper" anymore
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
想了解API接口,这一篇就够了
【原创】VMware Workstation实现Openwrt软路由功能,非ESXI,内容非常详细!
Solve the ali cloud oss - the original 】 【 exe double-click response can't open, to provide a solution
cesium加载地图
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 1 Find programs in the PATH
备战金三银四:如何成功拿到阿里offer(经历+面试题+如何准备)
随机推荐
json库的dumps()方法和loads()方法
用Word写代码
深度学习--循环神经网络(Recurrent Neural Network)
批量转换经纬度的网页实现方法
认识
上传张最近做的E2用的xmms的界面的截图
stimulus.js 初体验
情感分析SowNLP词库
Cpolar内网穿透的面板功能介绍
numpy的ndarray取数操作
中断系统结构及中断控制
unix环境编程 第十五章 15.7消息队列
相伴成长,彼此成就 用友U9 cloud做好制造业数智化升级的同路人
torch.cat()函数的官方解释,详解以及例子
tensorflow和numpy对应的版本,报FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecate
Win7 远程桌面限制IP
unix环境编程 第十五章 15.6 XSI IPC
工作--今天的学习
xmms的歌词显示及音量控制OK
1005 继续(3n+1)猜想 (25 分)