ubuntu查看Mysql是否已启动

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

posted on 2014-06-08 21:24  pushStack  阅读(7624)  评论(0编辑  收藏  举报