成人视屏在线观看-国产99精品-国产精品1区2区-欧美一级在线观看-国产一区二区日韩-色九九九

您的位置:首頁技術(shù)文章
文章詳情頁

centos7無法自啟動 mysql

瀏覽:110日期:2022-06-21 13:09:24

問題描述

阿里云ECS 安裝了mysql 5.6,使用 systemctl start mysql成功啟動mysql,可使用 systemctl enable mysql將mysql加入到開機(jī)自啟動,可卻報錯:

[root@go ~]# mysql -Vmysql Ver 14.14 Distrib 5.6.29, for Linux (x86_64) using EditLine wrapper[root@go ~]#[root@go ~]# systemctl enable mysqlFailed to execute operation: No such file or directory[root@go ~]# systemctl enable mariadbFailed to execute operation: No such file or directory[root@go ~]#

使用systemctl enable mariadb 也是一樣的,我在Linode中的centos7是直接使用 systemctl enable mariadb 加入自啟動的

但是運(yùn)行 systemctl enable httpd 是沒有報錯。

[root@go ~]# chkconfigNote: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use ’systemctl list-unit-files’. To see services enabled on particular target use ’systemctl list-dependencies [target]’.aegis 0:off 1:off 2:on 3:on 4:on 5:on 6:offagentwatch 0:off 1:off 2:on 3:on 4:on 5:on 6:offnetconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:offnetwork 0:off 1:off 2:on 3:on 4:on 5:on 6:off[root@go ~]#

問題解答

回答1:

systemctl list-unit-files 查看下有沒有mysql.service 文件

回答2:

systemctl enable mysqld

回答3:

systemctl enable mysqld.service

回答4:

上面層主說的幾個命令都試了,還是沒有用:ystemctl enable mysqld.servicemysqld.service is not a native service, redirecting to /sbin/chkconfig.Executing /sbin/chkconfig mysqld on[root@iZj6c5y812icw80hzp696gZ ~]# systemctl enable mysqldmysqld.service is not a native service, redirecting to /sbin/chkconfig.Executing /sbin/chkconfig mysqld on[root@iZj6c5y812icw80hzp696gZ ~]# /sbin/chkconfig mysqld onhttp://aliyun.youhuima.cc

===========更新=============

找到了解決方法:編輯文件:vi /etc/rc.d/rc.local增加下面命令,保存/etc/rc.d/init.d/mysqld start

然后添加該文件可執(zhí)行權(quán)限:chmod +x /etc/rc.d/rc.local

經(jīng)過驗(yàn)證該方案可行。

相關(guān)文章:
主站蜘蛛池模板: 欧美日韩视频一区二区 | 免费毛片视频网站 | 欧美特黄视频在线观看 | 精品日韩一区二区三区 | 国产成人久久精品激情91 | 久久精品视频1 | 亚洲精品午夜久久久伊人 | 亚洲国产精品久久久久 | 亚洲wu码| 久久只有精品视频 | 国产偷自拍 | 国产高清美女一级a毛片久久w | 韩国日本三级在线观看 | 国产成人一区二区视频在线观看 | 欧美成人全部免费观看1314色 | 国模偷拍在线观看免费视频 | 免费欧美在线视频 | 亚洲男人网 | 欧美一二区视频 | 欧美日韩国产高清一区二区三区 | fefe66免费毛片你懂的 | 久久免费视频观看 | 亚洲wwwwww| 国产在线一二三区 | 黄色福利小视频 | 亚洲一区视频 | 久久毛片免费 | 国产一区二区三区视频在线观看 | 久久久久久综合七次郎 | 99久久精品国产自免费 | 视频一区 在线 | 亚洲一区 欧美 | 一级伦理电线在2019 | 国产成人精品一区二三区 | 美国一级毛片不卡无毒 | 日韩精品a | 美女张开腿双腿让男人桶 | 国产在线一二三区 | 国产一级片免费看 | 亚洲香蕉久久一区二区三区四区 | 亚洲在线观看免费视频 |