In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "linux how to check whether mysql is started". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "linux how to check whether mysql is started".
Method: 1, execute the "service mysqld status" command, start if the output "running"; 2, execute the "chkconfig-- list" command, start if the service status is not off; 3, execute the "pidof mysqld" command, display PID, then start.
The operating environment of this tutorial: CentOS 6 system, Dell G3 computer.
How does linux check if mysql is started?
Method 1: use the service mysqld status command
Mysqld is stopped, that means the mysql service is stopped.
If it is mysqld is running, it means that the mysql service is started.
Method 2: use the chkconfig-- list command
Find the mysqld service in the following service. If the status is off, the mysql service has not been started.
Method 3: use the chkconfig-- list mysqld command
Find the mysqld service in the following service. If the status is off, the mysql service has not been started.
Method 4: use the chkconfig-- list | grep on command
If the mysql service is already started, then there will be this service here.
Method 5: use the chkconfig-- list | grep off command
If the mysql service is not started, there will be this service here.
Method 6: use the ps aux | grep mysqld command
Method 7: use the pidof mysqld command
If PID is displayed, the program is started, and if PID is not displayed, the program is not started.
Thank you for your reading, the above is the content of "linux how to check whether mysql is started". After the study of this article, I believe you have a deeper understanding of how to check whether linux is started or not, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.