ubuntu查看Mysql是否已启动

时间:2014-06-09 13:18:40   收藏:0   阅读:1299

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!