码迷,mamicode.com
首页 > 数据库 > 详细

ubuntu查看Mysql是否已启动

时间:2014-06-09 13:18:40      阅读:1299      评论:0      收藏:0      [点我收藏+]

标签:c   style   a   http   color   int   

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

ubuntu查看Mysql是否已启动

标签:c   style   a   http   color   int   

原文地址:http://www.cnblogs.com/datastack/p/3776794.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!