亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

centos7無法自啟動(dòng) mysql

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

問題描述

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

[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 加入自啟動(dòng)的

但是運(yùn)行 systemctl enable httpd 是沒有報(bào)錯(cuò)。

[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:

上面層主說的幾個(gè)命令都試了,還是沒有用: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)文章:
主站蜘蛛池模板: 亚洲国产成人超福利久久精品 | 韩国毛片在线观看 | 在线观看国产小视频 | 亚洲综合涩 | 国产精品亚洲欧美日韩区 | 亚洲人成在线免费观看 | 国产精品秋霞午夜 | 十六以下岁女子毛片免费 | 色天天综合久久久久综合片 | 欧洲在线观看在线视频吗 | 久久亚洲日本不卡一区二区 | 成人免费观看国产高清 | 久久88香港三级台湾三级中文 | 国产综合在线观看 | 欧美黄色录像 | 国产剧情麻豆mv在线观看 | 最新国产麻豆精品 | 一本一本久久a久久精品综合麻豆 | 中文国产成人精品少久久 | 亚洲成a人片在线观看中 | 亚洲精品综合一区二区三区在线 | 国产区1 | 黄色片视频在线免费观看 | 国产一及毛片 | 五月婷婷六月天 | 欧美一区二区三区免费看 | 五月四房播 | 91在线 | porny | 欧美 | 欧美色欧美亚洲另类二区精品 | 亚洲精品欧美在线 | 国产日产欧美a级毛片 | 中文字幕久热在线精品 | 亚洲在线免费观看视频 | 亚洲欧洲一区二区三区 | 国产精品亚洲二区在线 | 免费一区二区三区免费视频 | 久青草视频免费视频播放线路1 | 99久久国语对白精品露脸 | 国产99在线播放免费 | 一区二区在线不卡 | 青青青国产精品国产精品美女 |