wzh789 发表于 2018-10-10 12:39:22

2017 ubuntu 14.04 安装 Nginx PHP MySQL

会提示设置root的密码,我设置为"chunli"  
chunli@Linux:~$ sudo apt-get install mysql-server
  

  
检查3306端口的监听
  
chunli@Linux:~$ sudo netstat -tnlp
  
激活Internet连接 (仅服务器)
  
Proto Recv-Q Send-Q Local Address         Foreign Address         State       PID/Program name
  
tcp      0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      1062/dnsmasq
  
tcp      0      0 0.0.0.0:22            0.0.0.0:*               LISTEN      972/sshd
  
tcp      0      0 127.0.0.1:631         0.0.0.0:*               LISTEN      1727/cupsd
  
tcp      0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      6285/mysqld
  
tcp      0      0 0.0.0.0:80            0.0.0.0:*               LISTEN      2253/nginx
  
tcp6       0      0 :::22                   :::*                  LISTEN      972/sshd
  
tcp6       0      0 ::1:631               :::*                  LISTEN      1727/cupsd
  
tcp6       0      0 :::80                   :::*                  LISTEN      2253/nginx
  
chunli@Linux:~$


页: [1]
查看完整版本: 2017 ubuntu 14.04 安装 Nginx PHP MySQL