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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM