2020国产成人精品视频,性做久久久久久久久,亚洲国产成人久久综合一区,亚洲影院天堂中文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復(fù)制到/etc/init.d/mysql中,假如你的安裝在/usr/local/mysql/
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql

當(dāng)然我碰到另一種情況。

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

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

安裝了mysql很久了,我忘了我當(dāng)時安裝的是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.bczicp.cn]注冊一個賬號登錄,里面真的有很多優(yōu)秀的文章,歡迎大家的到來。
---
';

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多