[root@nginx-4c nginx]# netstat -antlup | grep nginx tcp 000.0.0.0:800.0.0.0:* LISTEN 882/nginx: master p tcp 000.0.0.0:246780.0.0.0:* LISTEN 882/nginx: master p
访问测试:
[root@localhost mnt]# ssh -p 24678root@172.16.12.82root@172.16.12.82's password: Last login: Sat Jan 400:59:112020 from 172.16.12.1 [root@chunk1 ~]# Connection to172.16.12.82 closed by remote host. Connection to172.16.12.82 closed.
[root@nginx-4c nginx]# netstat -antlup | grep nginx tcp 000.0.0.0:33070.0.0.0:* LISTEN 882/nginx: master p tcp 000.0.0.0:800.0.0.0:* LISTEN 882/nginx: master p tcp 000.0.0.0:33060.0.0.0:* LISTEN 882/nginx: master p
访问测试:
[root@client ~]# yum install -y mariadb
[root@client ~]# mysql -h 172.16.12.82-P 3306-u read -p12345 Welcome to the MariaDB monitor. Commands end with ;or \g.
[root@client ~]# mysql -h 172.16.12.82-P 3307-u write -p12345 Welcome to the MariaDB monitor. Commands end with ;or \g. Your MariaDB connection id is3