当前位置:网站首页>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
微信扫一扫:关注我个人订阅号“猿小飞”,更多精彩文章在这里及时发布:
边栏推荐
猜你喜欢
上传张最近做的E2用的xmms的界面的截图
自从我使用HiFlow场景连接器后,在也不用担心成为“落汤鸡”了
批量转换经纬度的网页实现方法
类与对象 (下)
深度学习--循环神经网络(Recurrent Neural Network)
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization Paper Reading
Since I use the HiFlow scene connector, I don't have to worry about becoming a "dropper" anymore
pytorch widedeep文档
编解码(seq2seq)+注意机制(attention) 详细讲解
深度学习--神经网络(基础讲解)
随机推荐
Official explanation, detailed explanation and example of torch.cat() function
How to quickly get through the mirror release process?
【原创】VMware Workstation实现Openwrt软路由功能,非ESXI,内容非常详细!
解决1.tensorflow运行使用CPU不使用GPU 2.tensorflow环境下的GPU版本号 3.tensorflow和cuda以及cudnn版本对应问题 4.查看cuda和cudnn版本
Oracle数据库常用函数总结
unix环境编程 第十五章 15.5FIFO
笔记本电脑使用常见问题,持续更新
多商户商城系统功能拆解26讲-平台端分销设置
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
Create a table in a MySQL database through Doc
相关系数计算,热力图绘制,代码实现
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 2 Validate input: letters and numbers only
Unix Environment Programming Chapter 14 14.4 I/O Multiplexing
numpy库中的函数 bincount() where() diag() all()
关于页面初始化
Unix Environment Programming Chapter 15 15.7 Message Queuing
10000以内素数表(代码块)
faster-rcnn中的RPN原理
2022年台湾省矢量数据(点线面)及数字高程数据下载
详细的np.matmul / np.dot / np.multiply / tf.matmul / tf.multiply / *