您的位置:首页 > 博客中心 > 数据库 >

ubuntu查看Mysql是否已启动

时间:2022-03-10 17:32

sudo netstat -tap | grep mysql

命令行输出:

tcp6       0      0 [::]:mysql              [::]:*                  LISTEN      1740/mysqld 

 

sudo netstat -tap

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:http                  *:*                     LISTEN      5097/httpd      
tcp        0      0 *:ssh                   *:*                     LISTEN      828/sshd        
tcp        0     52 192.168.164.129:ssh     192.168.164.1:53587     ESTABLISHED 25330/sshd: wfm [pr
tcp6       0      0 [::]:mysql              [::]:*                  LISTEN      1740/mysqld     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      828/sshd

ubuntu查看Mysql是否已启动,布布扣,bubuko.com

热门排行

今日推荐

热门手游