Home > Operation and Maintenance > CentOS > How to check whether the mysql service is started in centos7

How to check whether the mysql service is started in centos7

王林
Release: 2020-05-18 14:09:13
Original
6003 people have browsed it

How to check whether the mysql service is started in centos7

You can determine whether the mysql service is started by querying the monitoring port or querying the process.

1. Query port

#netstat -tulpn
Copy after login

As shown in the picture:

How to check whether the mysql service is started in centos7

2. Query process

ps -ef | grep mysqld
Copy after login

If there are two processes mysqld_safe and mysqld, it means that the MySQL service is currently starting;

Recommended tutorial: centos tutorial

The above is the detailed content of How to check whether the mysql service is started in centos7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template