日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

Unit mysqld.service could not be found.

 融水公子 2024-04-26 發(fā)布于安徽
表白:黑白圣堂血天使,天劍鬼刀阿修羅。 
講解對象:
/Unit mysqld.service could not be found.
作者:融水公子 rsgz
===

Unit mysqld.service could not be found.

centos7里面執(zhí)行

systemctl status mysqld.service
然后就出現(xiàn)了Unit mysqld.service could not be found.報錯!

這是主流的處理方法:
1 這個命令本質(zhì)調(diào)用的是:/bin/systemctl status mysqld.service  但是依舊找不到mysqld.service
[root@rsgz ~]# service mysqld status
Redirecting to /bin/systemctl status mysqld.service
Unit mysqld.service could not be found

2 查詢/etc/init.d/下是否存在mysql
ll /etc/init.d/ | grep mysql

3 查詢mysql.server
find / -name mysql.server

4 把mysql.server復制到/etc/init.d/mysql中,假如你的安裝在/usr/local/mysql/
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql

當然我碰到另一種情況。

查看一下進程,有數(shù)字就有進程:

[root@rsgz ~]# pidof mysqld
1278
[root@rsgz ~]# ps aux | grep mysqld

安裝了mysql很久了,我忘了我當時安裝的是MariaDB數(shù)據(jù)庫(這個和mysql一模一樣,就是名字不同),所以查看數(shù)據(jù)庫狀態(tài)的命令要改成這樣:
啟動:systemctl start mariadb.service
停止:systemctl stop mariadb.service
狀態(tài):systemctl status mariadb.service

接下來使用這個命令就能查看到狀態(tài)了


===
 
公眾號:不浪仙人
謝謝大家的支持!可以點擊我的頭像,進入我的空間瀏覽更多文章呢。建議大家360doc[www.qqstock.cn]注冊一個賬號登錄,里面真的有很多優(yōu)秀的文章,歡迎大家的到來。
---
';

    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多