https://help.aliyun.com/product/25365.html?spm=5176.8789780.1092586.3.662957a8GE0tOChtml
一、地址參考;https://www.imooc.com/article/24464java
https://www.imooc.com/article/24471mysql
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last failed login: Tue Aug 14 06:04:45 CST 2018 from 178.163.92.130 on ssh:notty There were 6 failed login attempts since the last successful login. Last login: Mon Aug 13 12:08:58 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/network # Created by anaconda NETWORKING_IPV6=no PEERNTP=no [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/hostname iz2ze2m3z176dpbiaolifiz [root@iZ2ze2m3z176dpbiaolifiZ ~]# hostnamectl set-hostname xxx Invalid number of arguments. [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Xshell 5 (Build 1339) Copyright (c) 2002-2017 NetSarang Computer, Inc. All rights reserved. Type `help' to learn how to use Xshell prompt. [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last failed login: Tue Aug 14 06:04:45 CST 2018 from 178.163.92.130 on ssh:notty There were 6 failed login attempts since the last successful login. Last login: Mon Aug 13 12:08:58 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/network # Created by anaconda NETWORKING_IPV6=no PEERNTP=no [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/hostname iz2ze2m3z176dpbiaolifiz [root@iZ2ze2m3z176dpbiaolifiZ ~]# hostnamectl set-hostname Invalid number of arguments. [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 10:48:02. Type `help' to learn how to use Xshell prompt. [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:37:12 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# clear [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 10:48:08. Type `help' to learn how to use Xshell prompt. [c:\~]$ clear [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:48:05 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -a Linux iZ2ze2m3z176dpbiaolifiZ 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls -l / total 60 lrwxrwxrwx. 1 root root 7 Oct 15 2017 bin -> usr/bin dr-xr-xr-x. 5 root root 4096 Jul 11 23:03 boot drwxr-xr-x 20 root root 3040 Jul 11 23:03 dev drwxr-xr-x. 81 root root 4096 Jul 29 17:36 etc drwxr-xr-x. 3 root root 4096 Jul 12 22:13 home lrwxrwxrwx. 1 root root 7 Oct 15 2017 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Oct 15 2017 lib64 -> usr/lib64 drwx------. 2 root root 16384 Oct 15 2017 lost+found drwxr-xr-x. 2 root root 4096 Nov 5 2016 media drwxr-xr-x. 2 root root 4096 Nov 5 2016 mnt drwxr-xr-x. 7 root root 4096 Jul 11 23:08 opt dr-xr-xr-x 81 root root 0 Jul 11 23:03 proc dr-xr-x---. 7 root root 4096 Jul 30 01:54 root drwxr-xr-x 24 root root 680 Jul 18 23:17 run lrwxrwxrwx. 1 root root 8 Oct 15 2017 sbin -> usr/sbin drwxr-xr-x. 2 root root 4096 Nov 5 2016 srv dr-xr-xr-x 13 root root 0 Jul 12 07:03 sys drwxrwxrwt. 10 root root 4096 Aug 14 03:42 tmp drwxr-xr-x. 13 root root 4096 Oct 15 2017 usr drwxr-xr-x. 19 root root 4096 Oct 15 2017 var [root@iZ2ze2m3z176dpbiaolifiZ ~]# ll /bin/*|wc -l 830 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ll /usr/bin/*|wc -l 830 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls /run/ atd.pid blkid console cron.reboot dhclient-eth0.pid initramfs log mysqld nginx.pid ntpd.pid redis setrans sudo systemd tuned user auditd.pid cloud-init crond.pid dbus faillock lock mount netreport nscd plymouth sepermit sshd.pid syslogd.pid tmpfiles.d udev utmp [root@iZ2ze2m3z176dpbiaolifiZ ~]# cd /run/ [root@iZ2ze2m3z176dpbiaolifiZ run]# ll total 36 -rw-r--r-- 1 root root 4 Jul 11 23:03 atd.pid -rw-r--r-- 1 root root 4 Jul 11 23:03 auditd.pid drwxr-xr-x 2 root root 80 Jul 11 23:03 blkid drwxr-xr-x 2 root root 80 Jul 11 23:03 cloud-init drwxr-xr-x 2 root root 40 Jul 11 23:03 console -rw-r--r-- 1 root root 4 Jul 11 23:03 crond.pid ---------- 1 root root 0 Jul 11 23:03 cron.reboot drwxr-xr-x 2 root root 60 Jul 11 23:03 dbus -rw-r--r-- 1 root root 4 Jul 11 23:03 dhclient-eth0.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 faillock drwxr-xr-x 4 root root 100 Jul 12 07:03 initramfs drwxr-xr-x 4 root root 120 Aug 14 03:42 lock drwxr-xr-x 2 root root 40 Jul 11 23:03 log drwxr-xr-x 2 root root 60 Jul 12 07:03 mount drwxr-xr-x 2 mysql mysql 60 Jul 29 17:36 mysqld drwxrwxr-x 2 root root 40 Jul 11 23:03 netreport -rw-r--r-- 1 root root 6 Jul 11 23:14 nginx.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 nscd -rw-r--r-- 1 root root 3 Jul 11 23:03 ntpd.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 plymouth drwxr-xr-x 2 redis redis 40 Jul 11 23:15 redis drwxr-xr-x 2 root root 40 Jul 11 23:03 sepermit drwxr-xr-x 2 root root 40 Jul 11 23:03 setrans -rw-r--r-- 1 root root 5 Jul 11 23:03 sshd.pid drwx--x--x 3 root root 60 Jul 11 23:03 sudo -rw------- 1 root root 3 Jul 11 23:03 syslogd.pid drwxr-xr-x 16 root root 420 Aug 11 00:03 systemd drwxr-xr-x 2 root root 60 Jul 12 07:03 tmpfiles.d drwxr-xr-x 2 root root 60 Jul 11 23:03 tuned drwxr-xr-x 7 root root 160 Jul 11 23:03 udev drwxr-xr-x 3 root root 60 Jul 11 23:04 user -rw-rw-r-- 1 root utmp 2688 Aug 14 10:48 utmp [root@iZ2ze2m3z176dpbiaolifiZ run]# cat sshd.pid 3042 [root@iZ2ze2m3z176dpbiaolifiZ run]# ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str ESTAB 0 0 * 105582 * 105583 u_str ESTAB 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str ESTAB 0 0 * 32222 * 0 u_str ESTAB 0 0 * 10377 * 10378 u_str ESTAB 0 0 * 105583 * 105582 u_str ESTAB 0 0 * 11871 * 11872 u_str ESTAB 0 0 * 11241 * 11294 u_str ESTAB 0 0 * 18537 * 18538 u_str ESTAB 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str ESTAB 0 0 * 105580 * 105581 u_str ESTAB 0 0 * 105581 * 105580 u_str ESTAB 0 0 /run/systemd/journal/stdout 11671 * 11670 u_str ESTAB 0 0 * 11292 * 11293 u_str ESTAB 0 0 * 12861 * 12862 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str ESTAB 0 0 * 11293 * 11292 u_str ESTAB 0 0 * 27975 * 27976 u_str ESTAB 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str ESTAB 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_str ESTAB 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str ESTAB 0 0 * 11670 * 11671 u_str ESTAB 0 0 * 11879 * 11880 u_str ESTAB 0 0 * 28356 * 28364 u_str ESTAB 0 0 * 11010929 * 11010933 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str ESTAB 0 0 * 11070 * 11071 u_str ESTAB 0 0 * 13433 * 13434 u_str ESTAB 0 0 /run/systemd/journal/stdout 18538 * 18537 u_str ESTAB 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str ESTAB 0 0 * 11071 * 11070 u_str ESTAB 0 0 * 32131 * 0 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_str ESTAB 0 0 * 11280 * 11281 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_str ESTAB 0 0 * 12044 * 12045 u_str ESTAB 0 0 * 19117 * 19118 u_str ESTAB 0 0 * 27976 * 27975 u_str ESTAB 0 0 /run/systemd/journal/stdout 19118 * 19117 tcp ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp ESTAB 0 0 192.168.1.67:ssh 223.72.48.109:6284 tcp ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http tcp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http tcp ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http [root@iZ2ze2m3z176dpbiaolifiZ run]#
Xshell 5 (Build 1339) Copyright (c) 2002-2017 NetSarang Computer, Inc. All rights reserved. Type `help' to learn how to use Xshell prompt. [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last failed login: Tue Aug 14 06:04:45 CST 2018 from 178.163.92.130 on ssh:notty There were 6 failed login attempts since the last successful login. Last login: Mon Aug 13 12:08:58 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/network # Created by anaconda NETWORKING_IPV6=no PEERNTP=no [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/hostname iz2ze2m3z176dpbiaolifiz [root@iZ2ze2m3z176dpbiaolifiZ ~]# hostnamectl set-hostname Invalid number of arguments. [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 10:48:02. Type `help' to learn how to use Xshell prompt. [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:37:12 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# clear [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 10:48:08. Type `help' to learn how to use Xshell prompt. [c:\~]$ clear [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:48:05 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -a Linux iZ2ze2m3z176dpbiaolifiZ 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls -l / total 60 lrwxrwxrwx. 1 root root 7 Oct 15 2017 bin -> usr/bin dr-xr-xr-x. 5 root root 4096 Jul 11 23:03 boot drwxr-xr-x 20 root root 3040 Jul 11 23:03 dev drwxr-xr-x. 81 root root 4096 Jul 29 17:36 etc drwxr-xr-x. 3 root root 4096 Jul 12 22:13 home lrwxrwxrwx. 1 root root 7 Oct 15 2017 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Oct 15 2017 lib64 -> usr/lib64 drwx------. 2 root root 16384 Oct 15 2017 lost+found drwxr-xr-x. 2 root root 4096 Nov 5 2016 media drwxr-xr-x. 2 root root 4096 Nov 5 2016 mnt drwxr-xr-x. 7 root root 4096 Jul 11 23:08 opt dr-xr-xr-x 81 root root 0 Jul 11 23:03 proc dr-xr-x---. 7 root root 4096 Jul 30 01:54 root drwxr-xr-x 24 root root 680 Jul 18 23:17 run lrwxrwxrwx. 1 root root 8 Oct 15 2017 sbin -> usr/sbin drwxr-xr-x. 2 root root 4096 Nov 5 2016 srv dr-xr-xr-x 13 root root 0 Jul 12 07:03 sys drwxrwxrwt. 10 root root 4096 Aug 14 03:42 tmp drwxr-xr-x. 13 root root 4096 Oct 15 2017 usr drwxr-xr-x. 19 root root 4096 Oct 15 2017 var [root@iZ2ze2m3z176dpbiaolifiZ ~]# ll /bin/*|wc -l 830 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ll /usr/bin/*|wc -l 830 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ls /run/ atd.pid blkid console cron.reboot dhclient-eth0.pid initramfs log mysqld nginx.pid ntpd.pid redis setrans sudo systemd tuned user auditd.pid cloud-init crond.pid dbus faillock lock mount netreport nscd plymouth sepermit sshd.pid syslogd.pid tmpfiles.d udev utmp [root@iZ2ze2m3z176dpbiaolifiZ ~]# cd /run/ [root@iZ2ze2m3z176dpbiaolifiZ run]# ll total 36 -rw-r--r-- 1 root root 4 Jul 11 23:03 atd.pid -rw-r--r-- 1 root root 4 Jul 11 23:03 auditd.pid drwxr-xr-x 2 root root 80 Jul 11 23:03 blkid drwxr-xr-x 2 root root 80 Jul 11 23:03 cloud-init drwxr-xr-x 2 root root 40 Jul 11 23:03 console -rw-r--r-- 1 root root 4 Jul 11 23:03 crond.pid ---------- 1 root root 0 Jul 11 23:03 cron.reboot drwxr-xr-x 2 root root 60 Jul 11 23:03 dbus -rw-r--r-- 1 root root 4 Jul 11 23:03 dhclient-eth0.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 faillock drwxr-xr-x 4 root root 100 Jul 12 07:03 initramfs drwxr-xr-x 4 root root 120 Aug 14 03:42 lock drwxr-xr-x 2 root root 40 Jul 11 23:03 log drwxr-xr-x 2 root root 60 Jul 12 07:03 mount drwxr-xr-x 2 mysql mysql 60 Jul 29 17:36 mysqld drwxrwxr-x 2 root root 40 Jul 11 23:03 netreport -rw-r--r-- 1 root root 6 Jul 11 23:14 nginx.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 nscd -rw-r--r-- 1 root root 3 Jul 11 23:03 ntpd.pid drwxr-xr-x 2 root root 40 Jul 11 23:03 plymouth drwxr-xr-x 2 redis redis 40 Jul 11 23:15 redis drwxr-xr-x 2 root root 40 Jul 11 23:03 sepermit drwxr-xr-x 2 root root 40 Jul 11 23:03 setrans -rw-r--r-- 1 root root 5 Jul 11 23:03 sshd.pid drwx--x--x 3 root root 60 Jul 11 23:03 sudo -rw------- 1 root root 3 Jul 11 23:03 syslogd.pid drwxr-xr-x 16 root root 420 Aug 11 00:03 systemd drwxr-xr-x 2 root root 60 Jul 12 07:03 tmpfiles.d drwxr-xr-x 2 root root 60 Jul 11 23:03 tuned drwxr-xr-x 7 root root 160 Jul 11 23:03 udev drwxr-xr-x 3 root root 60 Jul 11 23:04 user -rw-rw-r-- 1 root utmp 2688 Aug 14 10:48 utmp [root@iZ2ze2m3z176dpbiaolifiZ run]# cat sshd.pid 3042 [root@iZ2ze2m3z176dpbiaolifiZ run]# ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str ESTAB 0 0 * 105582 * 105583 u_str ESTAB 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str ESTAB 0 0 * 32222 * 0 u_str ESTAB 0 0 * 10377 * 10378 u_str ESTAB 0 0 * 105583 * 105582 u_str ESTAB 0 0 * 11871 * 11872 u_str ESTAB 0 0 * 11241 * 11294 u_str ESTAB 0 0 * 18537 * 18538 u_str ESTAB 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str ESTAB 0 0 * 105580 * 105581 u_str ESTAB 0 0 * 105581 * 105580 u_str ESTAB 0 0 /run/systemd/journal/stdout 11671 * 11670 u_str ESTAB 0 0 * 11292 * 11293 u_str ESTAB 0 0 * 12861 * 12862 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str ESTAB 0 0 * 11293 * 11292 u_str ESTAB 0 0 * 27975 * 27976 u_str ESTAB 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str ESTAB 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_str ESTAB 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str ESTAB 0 0 * 11670 * 11671 u_str ESTAB 0 0 * 11879 * 11880 u_str ESTAB 0 0 * 28356 * 28364 u_str ESTAB 0 0 * 11010929 * 11010933 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str ESTAB 0 0 * 11070 * 11071 u_str ESTAB 0 0 * 13433 * 13434 u_str ESTAB 0 0 /run/systemd/journal/stdout 18538 * 18537 u_str ESTAB 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str ESTAB 0 0 * 11071 * 11070 u_str ESTAB 0 0 * 32131 * 0 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_str ESTAB 0 0 * 11280 * 11281 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_str ESTAB 0 0 * 12044 * 12045 u_str ESTAB 0 0 * 19117 * 19118 u_str ESTAB 0 0 * 27976 * 27975 u_str ESTAB 0 0 /run/systemd/journal/stdout 19118 * 19117 tcp ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp ESTAB 0 0 192.168.1.67:ssh 223.72.48.109:6284 tcp ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http tcp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http tcp ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http [root@iZ2ze2m3z176dpbiaolifiZ run]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 10:51:46. Type `help' to learn how to use Xshell prompt. [c:\~]$ clear [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:48:14 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -a Linux iZ2ze2m3z176dpbiaolifiZ 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -r 3.10.0-693.2.2.el7.x86_64 [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl --help timedatectl [OPTIONS...] COMMAND ... Query or change system time and date settings. -h --help Show this help message --version Show package version --no-pager Do not pipe output into a pager --no-ask-password Do not prompt for password -H --host=[USER@]HOST Operate on remote host -M --machine=CONTAINER Operate on local container --adjust-system-clock Adjust system clock when changing local RTC mode Commands: status Show current time settings set-time TIME Set system time set-timezone ZONE Set system time zone list-timezones Show known time zones set-local-rtc BOOL Control whether RTC is in local time set-ntp BOOL Control whether NTP is enabled [root@iZ2ze2m3z176dpbiaolifiZ ~]# date Tue Aug 14 10:52:45 CST 2018 [root@iZ2ze2m3z176dpbiaolifiZ ~]# cal August 2018 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [root@iZ2ze2m3z176dpbiaolifiZ ~]# date -R Tue, 14 Aug 2018 10:52:53 +0800 [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/localtime TZifǜ?'p??Z??p ~h!Iap"^J#)Cp$Gg%_??&??+(У??~pCDTCSTTZif2 ????~6C)????ǜ?????'p??????????Z??p ~h!Iap"^J#)Cp$Gg%_??&??+(У??q?LMTCDTCST CST-8 [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl Local time: Tue 2018-08-14 10:54:34 CST Universal time: Tue 2018-08-14 02:54:34 UTC RTC time: Tue 2018-08-14 10:54:33 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: no NTP synchronized: yes RTC in local TZ: yes DST active: n/a Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl set-timezone Asia/Tokyo [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl Local time: Tue 2018-08-14 11:56:31 JST Universal time: Tue 2018-08-14 02:56:31 UTC RTC time: Tue 2018-08-14 11:56:31 Time zone: Asia/Tokyo (JST, +0900) NTP enabled: no NTP synchronized: yes RTC in local TZ: yes DST active: n/a Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl set-timezone Asia/Shanghai [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl Local time: Tue 2018-08-14 10:56:41 CST Universal time: Tue 2018-08-14 02:56:41 UTC RTC time: Tue 2018-08-14 10:56:42 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: no NTP synchronized: yes RTC in local TZ: yes DST active: n/a Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl set-local-rtc 1 [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl Local time: Tue 2018-08-14 10:57:21 CST Universal time: Tue 2018-08-14 02:57:21 UTC RTC time: Tue 2018-08-14 10:57:21 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: no NTP synchronized: yes RTC in local TZ: yes DST active: n/a Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl timezones Unknown operation timezones [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmara Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau Africa/Blantyre Africa/Brazzaville Africa/Bujumbura Africa/Cairo Africa/Casablanca Africa/Ceuta Africa/Conakry Africa/Dakar Africa/Dar_es_Salaam Africa/Djibouti Africa/Douala Africa/El_Aaiun Africa/Freetown Africa/Gaborone Africa/Harare Africa/Johannesburg Africa/Juba Africa/Kampala Africa/Khartoum Africa/Kigali Africa/Kinshasa Africa/Lagos Africa/Libreville Africa/Lome Africa/Luanda Africa/Lubumbashi Africa/Lusaka Africa/Malabo Africa/Maputo Africa/Maseru Africa/Mbabane Africa/Mogadishu Africa/Monrovia Africa/Nairobi Africa/Ndjamena Africa/Niamey Africa/Nouakchott Africa/Ouagadougou Africa/Porto-Novo Africa/Sao_Tome Africa/Tripoli Africa/Tunis Africa/Windhoek America/Adak America/Anchorage America/Anguilla America/Antigua America/Araguaina America/Argentina/Buenos_Aires America/Argentina/Catamarca America/Argentina/Cordoba America/Argentina/Jujuy America/Argentina/La_Rioja America/Argentina/Mendoza America/Argentina/Rio_Gallegos America/Argentina/Salta America/Argentina/San_Juan America/Argentina/San_Luis [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl ntpd status Unknown operation 'ntpd'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl ntp status Unknown operation 'ntp'. [root@iZ2ze2m3z176dpbiaolifiZ ~]# service ntpd start Redirecting to /bin/systemctl start ntpd.service [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl status ntpd ● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2018-07-11 23:03:21 CST; 1 months 3 days ago Main PID: 820 (ntpd) CGroup: /system.slice/ntpd.service └─820 /usr/sbin/ntpd -u ntp:ntp -g Jul 11 23:03:21 localhost.localdomain systemd[1]: Starting Network Time Service... Jul 11 23:03:21 localhost.localdomain ntpd[801]: ntpd 4.2.6p5@1.2349-o Wed Apr 12 21:24:06 UTC 2017 (1) Jul 11 23:03:21 localhost.localdomain systemd[1]: Started Network Time Service. Jul 11 23:03:21 localhost.localdomain ntpd[820]: proto: precision = 0.092 usec Jul 11 23:03:21 localhost.localdomain ntpd[820]: 0.0.0.0 c01d 0d kern kernel time sync enabled [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl enable ntpd [root@iZ2ze2m3z176dpbiaolifiZ ~]# ntpstat synchronised to NTP server (100.100.3.1) at stratum 3 time correct to within 43 ms polling server every 1024 s [root@iZ2ze2m3z176dpbiaolifiZ ~]# ntp -q -bash: ntp: command not found [root@iZ2ze2m3z176dpbiaolifiZ ~]# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== LOCAL(0) .LOCL. 10 l - 64 0 0.000 0.000 0.000 -120.25.115.20 10.137.53.7 2 u 649 1024 377 35.212 -0.363 2.038 -203.107.6.88 100.107.25.114 2 u 14 1024 377 11.590 0.918 0.223 10.143.33.49 .STEP. 16 u - 1024 0 0.000 0.000 0.000 10.143.33.50 .STEP. 16 u - 1024 0 0.000 0.000 0.000 10.143.33.51 .STEP. 16 u - 1024 0 0.000 0.000 0.000 10.143.0.44 .STEP. 16 u - 1024 0 0.000 0.000 0.000 10.143.0.45 .STEP. 16 u - 1024 0 0.000 0.000 0.000 10.143.0.46 .STEP. 16 u - 1024 0 0.000 0.000 0.000 -100.100.5.1 10.143.35.199 2 u 652 1024 377 32.458 0.479 0.113 -100.100.5.2 10.143.35.199 2 u 309 1024 377 33.188 0.128 0.177 -100.100.5.3 10.137.55.181 2 u 112 1024 377 33.188 0.488 0.095 *100.100.3.1 10.137.55.181 2 u 636 1024 377 33.139 -0.167 0.148 +100.100.3.2 10.137.55.181 2 u 244 1024 377 32.461 -0.085 0.090 +100.100.3.3 10.137.55.181 2 u 550 1024 377 32.826 -0.204 0.261 [root@iZ2ze2m3z176dpbiaolifiZ ~]# timedatectl Local time: Tue 2018-08-14 11:01:25 CST Universal time: Tue 2018-08-14 03:01:25 UTC RTC time: Tue 2018-08-14 11:01:26 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: no NTP synchronized: yes RTC in local TZ: yes DST active: n/a Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 10:51:51 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -a Linux iZ2ze2m3z176dpbiaolifiZ 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@iZ2ze2m3z176dpbiaolifiZ ~]# vim /etc/sysconfig/grub [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" [root@iZ2ze2m3z176dpbiaolifiZ ~]#
ip addr add 192.168.8.149/24 dev eth0:2
ip addr del192.168.8.149/24 dev eth0:2
ip link set dev eth0 down
ip link set dev eth0 up
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:05:55 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes [root@iZ2ze2m3z176dpbiaolifiZ ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.67 netmask 255.255.255.0 broadcast 192.168.1.255 ether 00:16:3e:0a:b6:54 txqueuelen 1000 (Ethernet) RX packets 3732876 bytes 1062868769 (1013.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2279912 bytes 1542588789 (1.4 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 2113559 bytes 131053318 (124.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2113559 bytes 131053318 (124.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465309sec preferred_lft 312465309sec [root@iZ2ze2m3z176dpbiaolifiZ ~]# yum install -y net-tools Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel | 3.2 kB 00:00:00 extras | 3.4 kB 00:00:00 ius | 2.3 kB 00:00:00 mysql57-community | 2.5 kB 00:00:00 nginx | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/7): extras/7/x86_64/primary_db | 173 kB 00:00:00 (2/7): epel/x86_64/updateinfo | 933 kB 00:00:00 (3/7): updates/7/x86_64/primary_db | 4.3 MB 00:00:00 (4/7): epel/x86_64/primary | 3.6 MB 00:00:00 (5/7): ius/x86_64/primary_db | 372 kB 00:00:00 (6/7): nginx/x86_64/primary_db | 35 kB 00:00:01 (7/7): mysql57-community/x86_64/primary_db | 152 kB 00:00:03 Determining fastest mirrors * ius: mirrors.tuna.tsinghua.edu.cn epel 12642/12642 Package net-tools-2.0-0.22.20131004git.el7.x86_64 already installed and latest version Nothing to do [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | macsec | tcp_metrics | token } OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | bridge | link } | -4 | -6 | -I | -D | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | -rc[vbuf] [size] | -n[etns] name | -a[ll] } [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip -a Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | macsec | tcp_metrics | token } OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | bridge | link } | -4 | -6 | -I | -D | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | -rc[vbuf] [size] | -n[etns] name | -a[ll] } [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465278sec preferred_lft 312465278sec [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465183sec preferred_lft 312465183sec [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:05:55 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes [root@iZ2ze2m3z176dpbiaolifiZ ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.67 netmask 255.255.255.0 broadcast 192.168.1.255 ether 00:16:3e:0a:b6:54 txqueuelen 1000 (Ethernet) RX packets 3732876 bytes 1062868769 (1013.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2279912 bytes 1542588789 (1.4 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 2113559 bytes 131053318 (124.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2113559 bytes 131053318 (124.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465309sec preferred_lft 312465309sec [root@iZ2ze2m3z176dpbiaolifiZ ~]# yum install -y net-tools Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel | 3.2 kB 00:00:00 extras | 3.4 kB 00:00:00 ius | 2.3 kB 00:00:00 mysql57-community | 2.5 kB 00:00:00 nginx | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/7): extras/7/x86_64/primary_db | 173 kB 00:00:00 (2/7): epel/x86_64/updateinfo | 933 kB 00:00:00 (3/7): updates/7/x86_64/primary_db | 4.3 MB 00:00:00 (4/7): epel/x86_64/primary | 3.6 MB 00:00:00 (5/7): ius/x86_64/primary_db | 372 kB 00:00:00 (6/7): nginx/x86_64/primary_db | 35 kB 00:00:01 (7/7): mysql57-community/x86_64/primary_db | 152 kB 00:00:03 Determining fastest mirrors * ius: mirrors.tuna.tsinghua.edu.cn epel 12642/12642 Package net-tools-2.0-0.22.20131004git.el7.x86_64 already installed and latest version Nothing to do [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | macsec | tcp_metrics | token } OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | bridge | link } | -4 | -6 | -I | -D | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | -rc[vbuf] [size] | -n[etns] name | -a[ll] } [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip -a Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } ip [ -force ] -batch filename where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | macsec | tcp_metrics | token } OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | -h[uman-readable] | -iec | -f[amily] { inet | inet6 | ipx | dnet | bridge | link } | -4 | -6 | -I | -D | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | -rc[vbuf] [size] | -n[etns] name | -a[ll] } [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465278sec preferred_lft 312465278sec [root@iZ2ze2m3z176dpbiaolifiZ ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:0a:b6:54 brd ff:ff:ff:ff:ff:ff inet 192.168.1.67/24 brd 192.168.1.255 scope global dynamic eth0 valid_lft 312465183sec preferred_lft 312465183sec [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 11:17:06. Type `help' to learn how to use Xshell prompt. [c:\~]$ clear [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:07:36 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@iZ2ze2m3z176dpbiaolifiZ ~]# uname -r 3.10.0-693.2.2.el7.x86_64 [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl status mysqld ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2018-07-29 17:36:14 CST; 2 weeks 1 days ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Main PID: 12041 (mysqld) CGroup: /system.slice/mysqld.service └─12041 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid Jul 29 17:36:14 iZ2ze2m3z176dpbiaolifiZ systemd[1]: Starting MySQL Server... Jul 29 17:36:14 iZ2ze2m3z176dpbiaolifiZ systemd[1]: Started MySQL Server. [root@iZ2ze2m3z176dpbiaolifiZ ~]# yum install bash-completion Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * ius: mirrors.tuna.tsinghua.edu.cn Resolving Dependencies --> Running transaction check ---> Package bash-completion.noarch 1:2.1-6.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================================= Installing: bash-completion noarch 1:2.1-6.el7 base 85 k Transaction Summary ============================================================================================================================================================================================================================================================= Install 1 Package Total download size: 85 k Installed size: 259 k Is this ok [y/d/N]: y Downloading packages: bash-completion-2.1-6.el7.noarch.rpm | 85 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:bash-completion-2.1-6.el7.noarch 1/1 Verifying : 1:bash-completion-2.1-6.el7.noarch 1/1 Installed: bash-completion.noarch 1:2.1-6.el7 Complete! [root@iZ2ze2m3z176dpbiaolifiZ ~]# logout Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(Nginx從入門到放棄) at 11:18:28. Type `help' to learn how to use Xshell prompt. [c:\~]$ Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:17:11 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# systemctl status nginx.service ● nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2018-07-11 23:14:12 CST; 1 months 3 days ago Docs: http://nginx.org/en/docs/ Main PID: 10630 (nginx) CGroup: /system.slice/nginx.service ├─10630 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf └─10631 nginx: worker process Jul 11 23:14:12 iZ2ze2m3z176dpbiaolifiZ systemd[1]: Starting nginx - high performance web server... Jul 11 23:14:12 iZ2ze2m3z176dpbiaolifiZ systemd[1]: PID file /var/run/nginx.pid not readable (yet?) after start. Jul 11 23:14:12 iZ2ze2m3z176dpbiaolifiZ systemd[1]: Started nginx - high performance web server. [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:18:30 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 147 0 1290 1252 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# top top - 11:27:12 up 33 days, 12:23, 2 users, load average: 0.01, 0.02, 0.05 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 6.2 sy, 0.0 ni, 93.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1883492 total, 150596 free, 411416 used, 1321480 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1281920 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 190872 3832 2516 S 0.0 0.2 0:15.61 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.28 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:15.52 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 7:57.31 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:11.16 watchdog/0 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 14 root 20 0 0 0 0 S 0.0 0.0 0:00.62 khungtaskd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md 25 root 20 0 0 0 0 S 0.0 0.0 0:00.24 kswapd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:05.16 khugepaged 28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 37 root 20 0 0 0 0 S 0.0 0.0 0:09.06 kworker/u2:1 38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd 39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ipv6_addrconf 59 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 92 root 20 0 0 0 0 S 0.0 0.0 0:00.18 kauditd 228 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff 234 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 235 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0 236 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 237 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1 240 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap 256 root 0 -20 0 0 0 S 0.0 0.0 0:12.77 kworker/0:1H 261 root 20 0 0 0 0 S 0.0 0.0 0:21.73 jbd2/vda1-8 262 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver 330 root 20 0 36832 6988 6676 S 0.0 0.4 0:07.93 systemd-journal 350 root 20 0 44040 2024 1280 S 0.0 0.1 0:00.03 systemd-udevd 411 root 16 -4 55452 1096 648 S 0.0 0.1 0:02.05 auditd 441 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 edac-poller 461 dbus 20 0 24424 1692 1292 S 0.0 0.1 0:10.04 dbus-daemon 462 polkitd 20 0 534244 11316 4756 S 0.0 0.6 0:04.11 polkitd 465 root 20 0 249156 4940 3912 S 0.0 0.3 1:32.17 rsyslogd 468 root 20 0 24204 1700 1388 S 0.0 0.1 0:06.29 systemd-logind 473 root 20 0 25856 936 732 S 0.0 0.0 0:00.02 atd 477 root 20 0 126236 1588 968 S 0.0 0.1 0:04.48 crond 490 root 20 0 96992 2684 2004 S 0.0 0.1 0:00.01 login 491 root 20 0 110044 836 712 S 0.0 0.0 0:00.00 agetty 717 root 20 0 113372 12788 300 S 0.0 0.7 0:00.00 dhclient 805 root 20 0 562388 16440 5732 S 0.0 0.9 4:39.60 tuned 820 ntp 20 0 29900 2116 1480 S 0.0 0.1 0:10.11 ntpd [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat |htop ^C [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop|cat [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop > htop.txt [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat htop.txt [root@iZ2ze2m3z176dpbiaolifiZ ~]# mv htop.txt /tmp/ [root@iZ2ze2m3z176dpbiaolifiZ ~]# top top - 11:28:33 up 33 days, 12:25, 2 users, load average: 0.00, 0.01, 0.05 Tasks: 70 total, 2 running, 68 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.3 us, 0.3 sy, 0.0 ni, 98.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1883492 total, 149724 free, 411844 used, 1321924 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1281328 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 11300 root 20 0 2059544 79020 10928 S 1.0 4.2 245:33.17 java 1 root 20 0 190872 3832 2516 S 0.0 0.2 0:15.61 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.28 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:15.52 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 7:57.33 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:11.16 watchdog/0 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 14 root 20 0 0 0 0 S 0.0 0.0 0:00.62 khungtaskd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md 25 root 20 0 0 0 0 S 0.0 0.0 0:00.24 kswapd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:05.16 khugepaged 28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 37 root 20 0 0 0 0 S 0.0 0.0 0:09.06 kworker/u2:1 38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd 39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ipv6_addrconf 59 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 92 root 20 0 0 0 0 S 0.0 0.0 0:00.18 kauditd 228 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff 234 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 235 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0 236 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 237 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1 240 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap 256 root 0 -20 0 0 0 S 0.0 0.0 0:12.77 kworker/0:1H 261 root 20 0 0 0 0 S 0.0 0.0 0:21.74 jbd2/vda1-8 262 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver 330 root 20 0 36832 6988 6676 S 0.0 0.4 0:07.93 systemd-journal 350 root 20 0 44040 2024 1280 S 0.0 0.1 0:00.03 systemd-udevd 411 root 16 -4 55452 1096 648 S 0.0 0.1 0:02.05 auditd 441 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 edac-poller 461 dbus 20 0 24424 1692 1292 S 0.0 0.1 0:10.04 dbus-daemon 462 polkitd 20 0 534244 11316 4756 S 0.0 0.6 0:04.11 polkitd 465 root 20 0 249156 4940 3912 S 0.0 0.3 1:32.18 rsyslogd 468 root 20 0 24204 1700 1388 S 0.0 0.1 0:06.29 systemd-logind 473 root 20 0 25856 936 732 S 0.0 0.0 0:00.02 atd 477 root 20 0 126236 1588 968 S 0.0 0.1 0:04.48 crond 490 root 20 0 96992 2684 2004 S 0.0 0.1 0:00.01 login 491 root 20 0 110044 836 712 S 0.0 0.0 0:00.00 agetty 717 root 20 0 113372 12788 300 S 0.0 0.7 0:00.00 dhclient 805 root 20 0 562388 16440 5732 S 0.0 0.9 4:39.60 tuned [root@iZ2ze2m3z176dpbiaolifiZ ~]# free total used free shared buff/cache available Mem: 1883492 411476 150096 392 1321920 1281700 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 146 0 1290 1251 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# sync [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 146 0 1290 1251 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:18:30 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 147 0 1290 1252 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# top top - 11:27:12 up 33 days, 12:23, 2 users, load average: 0.01, 0.02, 0.05 Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 6.2 sy, 0.0 ni, 93.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1883492 total, 150596 free, 411416 used, 1321480 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1281920 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 190872 3832 2516 S 0.0 0.2 0:15.61 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.28 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:15.52 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 7:57.31 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:11.16 watchdog/0 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 14 root 20 0 0 0 0 S 0.0 0.0 0:00.62 khungtaskd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md 25 root 20 0 0 0 0 S 0.0 0.0 0:00.24 kswapd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:05.16 khugepaged 28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 37 root 20 0 0 0 0 S 0.0 0.0 0:09.06 kworker/u2:1 38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd 39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ipv6_addrconf 59 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 92 root 20 0 0 0 0 S 0.0 0.0 0:00.18 kauditd 228 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff 234 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 235 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0 236 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 237 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1 240 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap 256 root 0 -20 0 0 0 S 0.0 0.0 0:12.77 kworker/0:1H 261 root 20 0 0 0 0 S 0.0 0.0 0:21.73 jbd2/vda1-8 262 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver 330 root 20 0 36832 6988 6676 S 0.0 0.4 0:07.93 systemd-journal 350 root 20 0 44040 2024 1280 S 0.0 0.1 0:00.03 systemd-udevd 411 root 16 -4 55452 1096 648 S 0.0 0.1 0:02.05 auditd 441 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 edac-poller 461 dbus 20 0 24424 1692 1292 S 0.0 0.1 0:10.04 dbus-daemon 462 polkitd 20 0 534244 11316 4756 S 0.0 0.6 0:04.11 polkitd 465 root 20 0 249156 4940 3912 S 0.0 0.3 1:32.17 rsyslogd 468 root 20 0 24204 1700 1388 S 0.0 0.1 0:06.29 systemd-logind 473 root 20 0 25856 936 732 S 0.0 0.0 0:00.02 atd 477 root 20 0 126236 1588 968 S 0.0 0.1 0:04.48 crond 490 root 20 0 96992 2684 2004 S 0.0 0.1 0:00.01 login 491 root 20 0 110044 836 712 S 0.0 0.0 0:00.00 agetty 717 root 20 0 113372 12788 300 S 0.0 0.7 0:00.00 dhclient 805 root 20 0 562388 16440 5732 S 0.0 0.9 4:39.60 tuned 820 ntp 20 0 29900 2116 1480 S 0.0 0.1 0:10.11 ntpd [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat |htop ^C [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop|cat [root@iZ2ze2m3z176dpbiaolifiZ ~]# htop > htop.txt [root@iZ2ze2m3z176dpbiaolifiZ ~]# cat htop.txt [root@iZ2ze2m3z176dpbiaolifiZ ~]# mv htop.txt /tmp/ [root@iZ2ze2m3z176dpbiaolifiZ ~]# top top - 11:28:33 up 33 days, 12:25, 2 users, load average: 0.00, 0.01, 0.05 Tasks: 70 total, 2 running, 68 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.3 us, 0.3 sy, 0.0 ni, 98.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1883492 total, 149724 free, 411844 used, 1321924 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1281328 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 11300 root 20 0 2059544 79020 10928 S 1.0 4.2 245:33.17 java 1 root 20 0 190872 3832 2516 S 0.0 0.2 0:15.61 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.28 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:15.52 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 7:57.33 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:11.16 watchdog/0 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 14 root 20 0 0 0 0 S 0.0 0.0 0:00.62 khungtaskd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback 16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md 25 root 20 0 0 0 0 S 0.0 0.0 0:00.24 kswapd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:05.16 khugepaged 28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 37 root 20 0 0 0 0 S 0.0 0.0 0:09.06 kworker/u2:1 38 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kmpath_rdacd 39 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ipv6_addrconf 59 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 92 root 20 0 0 0 0 S 0.0 0.0 0:00.18 kauditd 228 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff 234 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 235 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_0 236 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 237 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 scsi_tmf_1 240 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap 256 root 0 -20 0 0 0 S 0.0 0.0 0:12.77 kworker/0:1H 261 root 20 0 0 0 0 S 0.0 0.0 0:21.74 jbd2/vda1-8 262 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver 330 root 20 0 36832 6988 6676 S 0.0 0.4 0:07.93 systemd-journal 350 root 20 0 44040 2024 1280 S 0.0 0.1 0:00.03 systemd-udevd 411 root 16 -4 55452 1096 648 S 0.0 0.1 0:02.05 auditd 441 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 edac-poller 461 dbus 20 0 24424 1692 1292 S 0.0 0.1 0:10.04 dbus-daemon 462 polkitd 20 0 534244 11316 4756 S 0.0 0.6 0:04.11 polkitd 465 root 20 0 249156 4940 3912 S 0.0 0.3 1:32.18 rsyslogd 468 root 20 0 24204 1700 1388 S 0.0 0.1 0:06.29 systemd-logind 473 root 20 0 25856 936 732 S 0.0 0.0 0:00.02 atd 477 root 20 0 126236 1588 968 S 0.0 0.1 0:04.48 crond 490 root 20 0 96992 2684 2004 S 0.0 0.1 0:00.01 login 491 root 20 0 110044 836 712 S 0.0 0.0 0:00.00 agetty 717 root 20 0 113372 12788 300 S 0.0 0.7 0:00.00 dhclient 805 root 20 0 562388 16440 5732 S 0.0 0.9 4:39.60 tuned [root@iZ2ze2m3z176dpbiaolifiZ ~]# free total used free shared buff/cache available Mem: 1883492 411476 150096 392 1321920 1281700 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 146 0 1290 1251 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# sync [root@iZ2ze2m3z176dpbiaolifiZ ~]# free -m total used free shared buff/cache available Mem: 1839 401 146 0 1290 1251 Swap: 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str ESTAB 0 0 * 105582 * 105583 u_str ESTAB 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str ESTAB 0 0 * 32222 * 0 u_str ESTAB 0 0 * 10377 * 10378 u_str ESTAB 0 0 * 105583 * 105582 u_str ESTAB 0 0 * 11871 * 11872 u_str ESTAB 0 0 * 11241 * 11294 u_str ESTAB 0 0 * 18537 * 18538 u_str ESTAB 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str ESTAB 0 0 * 105580 * 105581 u_str ESTAB 0 0 * 105581 * 105580 u_str ESTAB 0 0 /run/systemd/journal/stdout 11671 * 11670 u_str ESTAB 0 0 * 11292 * 11293 u_str ESTAB 0 0 * 12861 * 12862 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str ESTAB 0 0 * 11293 * 11292 u_str ESTAB 0 0 * 27975 * 27976 u_str ESTAB 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str ESTAB 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_str ESTAB 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str ESTAB 0 0 * 11670 * 11671 u_str ESTAB 0 0 * 11879 * 11880 u_str ESTAB 0 0 * 28356 * 28364 u_str ESTAB 0 0 * 11010929 * 11010933 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str ESTAB 0 0 * 11070 * 11071 u_str ESTAB 0 0 * 13433 * 13434 u_str ESTAB 0 0 /run/systemd/journal/stdout 18538 * 18537 u_str ESTAB 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str ESTAB 0 0 * 11071 * 11070 u_str ESTAB 0 0 * 32131 * 0 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_str ESTAB 0 0 * 11280 * 11281 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_str ESTAB 0 0 * 12044 * 12045 u_str ESTAB 0 0 * 19117 * 19118 u_str ESTAB 0 0 * 27976 * 27975 u_str ESTAB 0 0 /run/systemd/journal/stdout 19118 * 19117 tcp ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http tcp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http tcp ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http tcp ESTAB 0 8060 192.168.1.67:ssh 223.72.48.109:6298 [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -lntup Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 10678/redis-server tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 10630/nginx: master tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3042/sshd tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 11300/java tcp6 0 0 :::3306 :::* LISTEN 12041/mysqld udp 0 0 0.0.0.0:36263 0.0.0.0:* 717/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 717/dhclient udp 0 0 192.168.1.67:123 0.0.0.0:* 820/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 820/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 820/ntpd udp6 0 0 :::35479 :::* 717/dhclient udp6 0 0 :::123 :::* 820/ntpd [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:32000 127.0.0.1:31000 ESTABLISHED tcp 0 0 192.168.1.67:34574 100.100.105.50:80 ESTABLISHED tcp 401 0 192.168.1.67:55070 106.11.248.209:80 CLOSE_WAIT tcp 0 0 127.0.0.1:31000 127.0.0.1:32000 ESTABLISHED tcp 0 0 192.168.1.67:32832 106.11.248.51:80 ESTABLISHED tcp 0 52 192.168.1.67:22 223.72.48.109:6298 ESTABLISHED tcp 0 0 192.168.1.67:44094 140.205.172.20:443 TIME_WAIT tcp6 0 0 :::3306 :::* LISTEN udp 0 0 0.0.0.0:36263 0.0.0.0:* udp 0 0 0.0.0.0:68 0.0.0.0:* udp 0 0 192.168.1.67:123 0.0.0.0:* udp 0 0 127.0.0.1:123 0.0.0.0:* udp 0 0 0.0.0.0:123 0.0.0.0:* udp6 0 0 :::35479 :::* udp6 0 0 :::123 :::* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 105584 /tmp/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> unix 2 [ ACC ] STREAM LISTENING 6546909 /var/lib/mysql/mysql.sock unix 2 [ ACC ] STREAM LISTENING 9615 /run/systemd/private unix 2 [ ] DGRAM 9641 /run/systemd/shutdownd unix 2 [ ACC ] SEQPACKET LISTENING 9649 /run/udev/control unix 2 [ ] DGRAM 6872 /run/systemd/notify unix 2 [ ] DGRAM 6874 /run/systemd/cgroups-agent unix 2 [ ACC ] STREAM LISTENING 11230 /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 105585 /usr/local/aegis/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> unix 2 [ ACC ] STREAM LISTENING 6886 /run/systemd/journal/stdout unix 5 [ ] DGRAM 6889 /run/systemd/journal/socket unix 10 [ ] DGRAM 6891 /dev/log unix 2 [ ] DGRAM 11873 unix 3 [ ] STREAM CONNECTED 105582 unix 3 [ ] STREAM CONNECTED 10378 /run/systemd/journal/stdout unix 2 [ ] STREAM CONNECTED 32222 unix 3 [ ] STREAM CONNECTED 10377 unix 3 [ ] STREAM CONNECTED 105583 unix 3 [ ] STREAM CONNECTED 11871 unix 3 [ ] STREAM CONNECTED 11241 unix 2 [ ] DGRAM 12088 unix 3 [ ] STREAM CONNECTED 18537 unix 3 [ ] STREAM CONNECTED 11872 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 105580 unix 3 [ ] STREAM CONNECTED 105581 unix 2 [ ] DGRAM 11954 unix 3 [ ] STREAM CONNECTED 11671 /run/systemd/journal/stdout unix 2 [ ] DGRAM 17702 unix 3 [ ] STREAM CONNECTED 11292 unix 3 [ ] STREAM CONNECTED 12861 unix 3 [ ] STREAM CONNECTED 11294 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11293 unix 3 [ ] STREAM CONNECTED 27975 unix 2 [ ] DGRAM 10439 unix 2 [ ] DGRAM 12274043 unix 3 [ ] STREAM CONNECTED 12862 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11010933 /run/systemd/journal/stdout unix 2 [ ] DGRAM 11962 unix 3 [ ] STREAM CONNECTED 28364 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11670 unix 3 [ ] STREAM CONNECTED 11879 unix 3 [ ] STREAM CONNECTED 28356 unix 3 [ ] STREAM CONNECTED 11010929 unix 3 [ ] STREAM CONNECTED 11880 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11070 unix 2 [ ] DGRAM 12960 unix 3 [ ] STREAM CONNECTED 13433 unix 3 [ ] STREAM CONNECTED 18538 /run/systemd/journal/stdout unix 2 [ ] DGRAM 12292 unix 3 [ ] DGRAM 10564 unix 3 [ ] STREAM CONNECTED 11281 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11071 unix 2 [ ] DGRAM 12267064 unix 2 [ ] DGRAM 11061 unix 2 [ ] STREAM CONNECTED 32131 unix 3 [ ] STREAM CONNECTED 13434 /var/run/dbus/system_bus_socket unix 3 [ ] DGRAM 10563 unix 3 [ ] STREAM CONNECTED 11280 unix 3 [ ] STREAM CONNECTED 12045 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 12044 unix 3 [ ] STREAM CONNECTED 19117 unix 3 [ ] STREAM CONNECTED 27976 unix 3 [ ] STREAM CONNECTED 19118 /run/systemd/journal/stdout [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -an|grep 22 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 52 192.168.1.67:22 223.72.48.109:6298 ESTABLISHED unix 2 [ ] STREAM CONNECTED 32222 unix 2 [ ] DGRAM 12274043 unix 2 [ ] DGRAM 12292 unix 2 [ ] DGRAM 12267064 [root@iZ2ze2m3z176dpbiaolifiZ ~]# w 11:36:20 up 33 days, 12:33, 2 users, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 11Jul18 33days 0.00s 0.00s -bash root pts/0 223.72.48.109 11:22 4.00s 0.04s 0.00s w [root@iZ2ze2m3z176dpbiaolifiZ ~]#
Connecting to 47.95.121.154:22... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. Last login: Tue Aug 14 11:37:24 2018 from 223.72.48.109 Welcome to Alibaba Cloud Elastic Compute Service ! [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str ESTAB 0 0 * 105582 * 105583 u_str ESTAB 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str ESTAB 0 0 * 32222 * 0 u_str ESTAB 0 0 * 10377 * 10378 u_str ESTAB 0 0 * 105583 * 105582 u_str ESTAB 0 0 * 11871 * 11872 u_str ESTAB 0 0 * 11241 * 11294 u_str ESTAB 0 0 * 18537 * 18538 u_str ESTAB 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str ESTAB 0 0 * 105580 * 105581 u_str ESTAB 0 0 * 105581 * 105580 u_str ESTAB 0 0 /run/systemd/journal/stdout 11671 * 11670 u_str ESTAB 0 0 * 11292 * 11293 u_str ESTAB 0 0 * 12861 * 12862 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str ESTAB 0 0 * 11293 * 11292 u_str ESTAB 0 0 * 27975 * 27976 u_str ESTAB 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str ESTAB 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_str ESTAB 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str ESTAB 0 0 * 11670 * 11671 u_str ESTAB 0 0 * 11879 * 11880 u_str ESTAB 0 0 * 28356 * 28364 u_str ESTAB 0 0 * 11010929 * 11010933 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str ESTAB 0 0 * 11070 * 11071 u_str ESTAB 0 0 * 13433 * 13434 u_str ESTAB 0 0 /run/systemd/journal/stdout 18538 * 18537 u_str ESTAB 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str ESTAB 0 0 * 11071 * 11070 u_str ESTAB 0 0 * 32131 * 0 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_str ESTAB 0 0 * 11280 * 11281 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_str ESTAB 0 0 * 12044 * 12045 u_str ESTAB 0 0 * 19117 * 19118 u_str ESTAB 0 0 * 27976 * 27975 u_str ESTAB 0 0 /run/systemd/journal/stdout 19118 * 19117 tcp ESTAB 0 8060 192.168.1.67:ssh 223.72.48.109:6574 tcp ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http tcp ESTAB 0 0 192.168.1.67:ssh 223.72.48.109:ufmp tcp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http tcp ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 52 iZ2ze2m3z176dpbiaol:ssh 223.72.48.109:6574 ESTABLISHED tcp 0 0 iZ2ze2m3z176dpbia:38416 100.100.18.50:http TIME_WAIT tcp 0 0 localhost:32000 localhost:31000 ESTABLISHED tcp 0 0 iZ2ze2m3z176dpbia:34574 100.100.105.50:http ESTABLISHED tcp 0 0 iZ2ze2m3z176dpbiaol:ssh 223.72.48.109:ufmp ESTABLISHED tcp 401 0 iZ2ze2m3z176dpbia:55070 106.11.248.209:http CLOSE_WAIT tcp 0 0 localhost:31000 localhost:32000 ESTABLISHED tcp 0 0 iZ2ze2m3z176dpbia:32832 106.11.248.51:http ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ] DGRAM 9641 /run/systemd/shutdownd unix 2 [ ] DGRAM 6872 /run/systemd/notify unix 2 [ ] DGRAM 6874 /run/systemd/cgroups-agent unix 5 [ ] DGRAM 6889 /run/systemd/journal/socket unix 11 [ ] DGRAM 6891 /dev/log unix 2 [ ] DGRAM 11873 unix 3 [ ] STREAM CONNECTED 105582 unix 3 [ ] STREAM CONNECTED 10378 /run/systemd/journal/stdout unix 2 [ ] STREAM CONNECTED 32222 unix 3 [ ] STREAM CONNECTED 10377 unix 3 [ ] STREAM CONNECTED 105583 unix 3 [ ] STREAM CONNECTED 11871 unix 3 [ ] STREAM CONNECTED 11241 unix 2 [ ] DGRAM 12088 unix 3 [ ] STREAM CONNECTED 18537 unix 3 [ ] STREAM CONNECTED 11872 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 105580 unix 3 [ ] STREAM CONNECTED 105581 unix 2 [ ] DGRAM 11954 unix 3 [ ] STREAM CONNECTED 11671 /run/systemd/journal/stdout unix 2 [ ] DGRAM 17702 unix 3 [ ] STREAM CONNECTED 11292 unix 3 [ ] STREAM CONNECTED 12861 unix 3 [ ] STREAM CONNECTED 11294 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11293 unix 3 [ ] STREAM CONNECTED 27975 unix 2 [ ] DGRAM 10439 unix 3 [ ] STREAM CONNECTED 12862 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11010933 /run/systemd/journal/stdout unix 2 [ ] DGRAM 11962 unix 3 [ ] STREAM CONNECTED 28364 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11670 unix 3 [ ] STREAM CONNECTED 11879 unix 3 [ ] STREAM CONNECTED 28356 unix 3 [ ] STREAM CONNECTED 11010929 unix 3 [ ] STREAM CONNECTED 11880 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11070 unix 2 [ ] DGRAM 12960 unix 3 [ ] STREAM CONNECTED 13433 unix 3 [ ] STREAM CONNECTED 18538 /run/systemd/journal/stdout unix 2 [ ] DGRAM 12292 unix 3 [ ] DGRAM 10564 unix 3 [ ] STREAM CONNECTED 11281 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11071 unix 2 [ ] DGRAM 12267064 unix 2 [ ] DGRAM 11061 unix 2 [ ] STREAM CONNECTED 32131 unix 3 [ ] STREAM CONNECTED 13434 /var/run/dbus/system_bus_socket unix 3 [ ] DGRAM 10563 unix 3 [ ] STREAM CONNECTED 11280 unix 3 [ ] STREAM CONNECTED 12045 /var/run/dbus/system_bus_socket unix 2 [ ] DGRAM 12280338 unix 2 [ ] DGRAM 12278779 unix 3 [ ] STREAM CONNECTED 12044 unix 3 [ ] STREAM CONNECTED 19117 unix 3 [ ] STREAM CONNECTED 27976 unix 3 [ ] STREAM CONNECTED 19118 /run/systemd/journal/stdout [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -lntup Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 10678/redis-server tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 10630/nginx: master tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3042/sshd tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 11300/java tcp6 0 0 :::3306 :::* LISTEN 12041/mysqld udp 0 0 0.0.0.0:36263 0.0.0.0:* 717/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 717/dhclient udp 0 0 192.168.1.67:123 0.0.0.0:* 820/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 820/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 820/ntpd udp6 0 0 :::35479 :::* 717/dhclient udp6 0 0 :::123 :::* 820/ntpd [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN tcp 0 52 192.168.1.67:22 223.72.48.109:6574 ESTABLISHED tcp 0 0 192.168.1.67:38416 100.100.18.50:80 TIME_WAIT tcp 0 0 127.0.0.1:32000 127.0.0.1:31000 ESTABLISHED tcp 0 0 192.168.1.67:34574 100.100.105.50:80 ESTABLISHED tcp 0 0 192.168.1.67:22 223.72.48.109:6306 ESTABLISHED tcp 401 0 192.168.1.67:55070 106.11.248.209:80 CLOSE_WAIT tcp 0 0 127.0.0.1:31000 127.0.0.1:32000 ESTABLISHED tcp 0 0 192.168.1.67:32832 106.11.248.51:80 ESTABLISHED tcp6 0 0 :::3306 :::* LISTEN udp 0 0 0.0.0.0:36263 0.0.0.0:* udp 0 0 0.0.0.0:68 0.0.0.0:* udp 0 0 192.168.1.67:123 0.0.0.0:* udp 0 0 127.0.0.1:123 0.0.0.0:* udp 0 0 0.0.0.0:123 0.0.0.0:* udp6 0 0 :::35479 :::* udp6 0 0 :::123 :::* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 105584 /tmp/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> unix 2 [ ACC ] STREAM LISTENING 6546909 /var/lib/mysql/mysql.sock unix 2 [ ACC ] STREAM LISTENING 9615 /run/systemd/private unix 2 [ ] DGRAM 9641 /run/systemd/shutdownd unix 2 [ ACC ] SEQPACKET LISTENING 9649 /run/udev/control unix 2 [ ] DGRAM 6872 /run/systemd/notify unix 2 [ ] DGRAM 6874 /run/systemd/cgroups-agent unix 2 [ ACC ] STREAM LISTENING 11230 /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 105585 /usr/local/aegis/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> unix 2 [ ACC ] STREAM LISTENING 6886 /run/systemd/journal/stdout unix 5 [ ] DGRAM 6889 /run/systemd/journal/socket unix 11 [ ] DGRAM 6891 /dev/log unix 2 [ ] DGRAM 11873 unix 3 [ ] STREAM CONNECTED 105582 unix 3 [ ] STREAM CONNECTED 10378 /run/systemd/journal/stdout unix 2 [ ] STREAM CONNECTED 32222 unix 3 [ ] STREAM CONNECTED 10377 unix 3 [ ] STREAM CONNECTED 105583 unix 3 [ ] STREAM CONNECTED 11871 unix 3 [ ] STREAM CONNECTED 11241 unix 2 [ ] DGRAM 12088 unix 3 [ ] STREAM CONNECTED 18537 unix 3 [ ] STREAM CONNECTED 11872 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 105580 unix 3 [ ] STREAM CONNECTED 105581 unix 2 [ ] DGRAM 11954 unix 3 [ ] STREAM CONNECTED 11671 /run/systemd/journal/stdout unix 2 [ ] DGRAM 17702 unix 3 [ ] STREAM CONNECTED 11292 unix 3 [ ] STREAM CONNECTED 12861 unix 3 [ ] STREAM CONNECTED 11294 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11293 unix 3 [ ] STREAM CONNECTED 27975 unix 2 [ ] DGRAM 10439 unix 3 [ ] STREAM CONNECTED 12862 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11010933 /run/systemd/journal/stdout unix 2 [ ] DGRAM 11962 unix 3 [ ] STREAM CONNECTED 28364 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11670 unix 3 [ ] STREAM CONNECTED 11879 unix 3 [ ] STREAM CONNECTED 28356 unix 3 [ ] STREAM CONNECTED 11010929 unix 3 [ ] STREAM CONNECTED 11880 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 11070 unix 2 [ ] DGRAM 12960 unix 3 [ ] STREAM CONNECTED 13433 unix 3 [ ] STREAM CONNECTED 18538 /run/systemd/journal/stdout unix 2 [ ] DGRAM 12292 unix 3 [ ] DGRAM 10564 unix 3 [ ] STREAM CONNECTED 11281 /run/systemd/journal/stdout unix 3 [ ] STREAM CONNECTED 11071 unix 2 [ ] DGRAM 12267064 unix 2 [ ] DGRAM 11061 unix 2 [ ] STREAM CONNECTED 32131 unix 3 [ ] STREAM CONNECTED 13434 /var/run/dbus/system_bus_socket unix 3 [ ] DGRAM 10563 unix 3 [ ] STREAM CONNECTED 11280 unix 3 [ ] STREAM CONNECTED 12045 /var/run/dbus/system_bus_socket unix 2 [ ] DGRAM 12280338 unix 2 [ ] DGRAM 12278779 unix 3 [ ] STREAM CONNECTED 12044 unix 3 [ ] STREAM CONNECTED 19117 unix 3 [ ] STREAM CONNECTED 27976 unix 3 [ ] STREAM CONNECTED 19118 /run/systemd/journal/stdout [root@iZ2ze2m3z176dpbiaolifiZ ~]# netstat -an|grep 22 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 52 192.168.1.67:22 223.72.48.109:6574 ESTABLISHED tcp 0 0 192.168.1.67:22 223.72.48.109:6306 ESTABLISHED unix 2 [ ] STREAM CONNECTED 32222 unix 2 [ ] DGRAM 12292 unix 2 [ ] DGRAM 12267064 unix 2 [ ] DGRAM 12280338 unix 2 [ ] DGRAM 12278779 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -l Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port nl UNCONN 0 0 rtnl:ntpd/820 * nl UNCONN 0 0 rtnl:kernel * nl UNCONN 0 0 rtnl:ntpd/820 * nl UNCONN 4352 0 tcpdiag:ss/12290 * nl UNCONN 768 0 tcpdiag:kernel * nl UNCONN 0 0 xfrm:kernel * nl UNCONN 0 0 selinux:kernel * nl UNCONN 0 0 audit:systemd/1 * nl UNCONN 0 0 audit:kernel * nl UNCONN 0 0 audit:auditd/411 * nl UNCONN 0 0 fiblookup:kernel * nl UNCONN 768 0 connector:AliYunDun/22713 * nl UNCONN 0 0 connector:kernel * nl UNCONN 213504 0 connector:990 * nl UNCONN 768 0 connector:AliYunDun/22713 * nl UNCONN 213504 0 connector:990 * nl UNCONN 0 0 uevent:-4117 * nl UNCONN 0 0 uevent:kernel * nl UNCONN 0 0 uevent:systemd-udevd/350 * nl UNCONN 0 0 uevent:-4119 * nl UNCONN 0 0 uevent:-4118 * nl UNCONN 0 0 uevent:systemd-logind/468 * nl UNCONN 0 0 uevent:-4107 * nl UNCONN 0 0 uevent:systemd/1 * nl UNCONN 0 0 uevent:tuned/805 * nl UNCONN 0 0 uevent:tuned/805 * nl UNCONN 0 0 uevent:-4119 * nl UNCONN 0 0 uevent:-4118 * nl UNCONN 0 0 uevent:-4117 * nl UNCONN 0 0 uevent:systemd-logind/468 * nl UNCONN 0 0 uevent:-4107 * nl UNCONN 0 0 uevent:systemd/1 * nl UNCONN 0 0 genl:kernel * nl UNCONN 0 0 scsi-trans:kernel * p_raw UNCONN 0 0 *:eth0 * u_str LISTEN 0 5 /tmp/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> 105584 * 0 u_str LISTEN 0 80 /var/lib/mysql/mysql.sock 6546909 * 0 u_str LISTEN 0 128 /run/systemd/private 9615 * 0 u_dgr UNCONN 0 0 /run/systemd/shutdownd 9641 * 0 u_seq LISTEN 0 128 /run/udev/control 9649 * 0 u_dgr UNCONN 0 0 /run/systemd/notify 6872 * 0 u_dgr UNCONN 0 0 /run/systemd/cgroups-agent 6874 * 0 u_str LISTEN 0 128 /var/run/dbus/system_bus_socket 11230 * 0 u_str LISTEN 0 5 /usr/local/aegis/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> 105585 * 0 u_str LISTEN 0 128 /run/systemd/journal/stdout 6886 * 0 u_dgr UNCONN 0 0 /run/systemd/journal/socket 6889 * 0 u_dgr UNCONN 0 0 /dev/log 6891 * 0 u_dgr UNCONN 0 0 * 11873 * 6889 u_dgr UNCONN 0 0 * 12088 * 6891 u_dgr UNCONN 0 0 * 11954 * 6891 u_dgr UNCONN 0 0 * 17702 * 6891 u_dgr UNCONN 0 0 * 10439 * 6889 u_dgr UNCONN 0 0 * 11962 * 6891 u_dgr UNCONN 0 0 * 12960 * 6891 u_dgr UNCONN 0 0 * 12292 * 6891 u_dgr UNCONN 0 768 * 10564 * 10563 u_dgr UNCONN 0 0 * 12267064 * 6889 u_dgr UNCONN 0 0 * 11061 * 6891 u_dgr UNCONN 8 0 * 10563 * 10564 u_dgr UNCONN 0 0 * 12280338 * 6891 u_dgr UNCONN 0 0 * 12278779 * 6891 udp UNCONN 0 0 *:36263 *:* udp UNCONN 0 0 *:bootpc *:* udp UNCONN 0 0 192.168.1.67:ntp *:* udp UNCONN 0 0 127.0.0.1:ntp *:* udp UNCONN 0 0 *:ntp *:* udp UNCONN 0 0 :::35479 :::* udp UNCONN 0 0 :::ntp :::* tcp LISTEN 0 128 127.0.0.1:6379 *:* tcp LISTEN 0 128 *:http *:* tcp LISTEN 0 128 *:ssh *:* tcp LISTEN 0 1 127.0.0.1:32000 *:* tcp LISTEN 0 80 :::mysql :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -lt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.1:6379 *:* LISTEN 0 128 *:http *:* LISTEN 0 128 *:ssh *:* LISTEN 0 1 127.0.0.1:32000 *:* LISTEN 0 80 :::mysql :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -lu State Recv-Q Send-Q Local Address:Port Peer Address:Port UNCONN 0 0 *:36263 *:* UNCONN 0 0 *:bootpc *:* UNCONN 0 0 192.168.1.67:ntp *:* UNCONN 0 0 127.0.0.1:ntp *:* UNCONN 0 0 *:ntp *:* UNCONN 0 0 :::35479 :::* UNCONN 0 0 :::ntp :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -ltn State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.1:6379 *:* LISTEN 0 128 *:80 *:* LISTEN 0 128 *:22 *:* LISTEN 0 1 127.0.0.1:32000 *:* LISTEN 0 80 :::3306 :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -ltnup Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port udp UNCONN 0 0 *:36263 *:* users:(("dhclient",pid=717,fd=20)) udp UNCONN 0 0 *:68 *:* users:(("dhclient",pid=717,fd=6)) udp UNCONN 0 0 192.168.1.67:123 *:* users:(("ntpd",pid=820,fd=19)) udp UNCONN 0 0 127.0.0.1:123 *:* users:(("ntpd",pid=820,fd=18)) udp UNCONN 0 0 *:123 *:* users:(("ntpd",pid=820,fd=16)) udp UNCONN 0 0 :::35479 :::* users:(("dhclient",pid=717,fd=21)) udp UNCONN 0 0 :::123 :::* users:(("ntpd",pid=820,fd=17)) tcp LISTEN 0 128 127.0.0.1:6379 *:* users:(("redis-server",pid=10678,fd=4)) tcp LISTEN 0 128 *:80 *:* users:(("nginx",pid=10631,fd=6),("nginx",pid=10630,fd=6)) tcp LISTEN 0 128 *:22 *:* users:(("sshd",pid=3042,fd=3)) tcp LISTEN 0 1 127.0.0.1:32000 *:* users:(("java",pid=11300,fd=4)) tcp LISTEN 0 80 :::3306 :::* users:(("mysqld",pid=12041,fd=18)) [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -a Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port nl UNCONN 0 0 rtnl:ntpd/820 * nl UNCONN 0 0 rtnl:kernel * nl UNCONN 0 0 rtnl:ntpd/820 * nl UNCONN 4352 0 tcpdiag:ss/12306 * nl UNCONN 768 0 tcpdiag:kernel * nl UNCONN 0 0 xfrm:kernel * nl UNCONN 0 0 selinux:kernel * nl UNCONN 0 0 audit:systemd/1 * nl UNCONN 0 0 audit:kernel * nl UNCONN 0 0 audit:auditd/411 * nl UNCONN 0 0 fiblookup:kernel * nl UNCONN 768 0 connector:AliYunDun/22713 * nl UNCONN 0 0 connector:kernel * nl UNCONN 213504 0 connector:990 * nl UNCONN 768 0 connector:AliYunDun/22713 * nl UNCONN 213504 0 connector:990 * nl UNCONN 0 0 uevent:-4117 * nl UNCONN 0 0 uevent:kernel * nl UNCONN 0 0 uevent:-4119 * nl UNCONN 0 0 uevent:-4118 * nl UNCONN 0 0 uevent:systemd-logind/468 * nl UNCONN 0 0 uevent:-4107 * nl UNCONN 0 0 uevent:systemd/1 * nl UNCONN 0 0 uevent:tuned/805 * nl UNCONN 0 0 uevent:tuned/805 * nl UNCONN 0 0 uevent:-4119 * nl UNCONN 0 0 uevent:-4118 * nl UNCONN 0 0 uevent:-4117 * nl UNCONN 0 0 uevent:systemd-logind/468 * nl UNCONN 0 0 uevent:-4107 * nl UNCONN 0 0 uevent:systemd/1 * nl UNCONN 0 0 genl:kernel * nl UNCONN 0 0 scsi-trans:kernel * p_raw UNCONN 0 0 *:eth0 * u_str LISTEN 0 5 /tmp/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> 105584 * 0 u_str LISTEN 0 80 /var/lib/mysql/mysql.sock 6546909 * 0 u_str LISTEN 0 128 /run/systemd/private 9615 * 0 u_dgr UNCONN 0 0 /run/systemd/shutdownd 9641 * 0 u_seq LISTEN 0 128 /run/udev/control 9649 * 0 u_dgr UNCONN 0 0 /run/systemd/notify 6872 * 0 u_dgr UNCONN 0 0 /run/systemd/cgroups-agent 6874 * 0 u_str LISTEN 0 128 /var/run/dbus/system_bus_socket 11230 * 0 u_str LISTEN 0 5 /usr/local/aegis/Aegis-<Guid(5A2C30A2-A87D-490A-9281-6765EDAD7CBA)> 105585 * 0 u_str LISTEN 0 128 /run/systemd/journal/stdout 6886 * 0 u_dgr UNCONN 0 0 /run/systemd/journal/socket 6889 * 0 u_dgr UNCONN 0 0 /dev/log 6891 * 0 u_dgr UNCONN 0 0 * 11873 * 6889 u_str ESTAB 0 0 * 105582 * 105583 u_str ESTAB 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str ESTAB 0 0 * 32222 * 0 u_str ESTAB 0 0 * 10377 * 10378 u_str ESTAB 0 0 * 105583 * 105582 u_str ESTAB 0 0 * 11871 * 11872 u_str ESTAB 0 0 * 11241 * 11294 u_dgr UNCONN 0 0 * 12088 * 6891 u_str ESTAB 0 0 * 18537 * 18538 u_str ESTAB 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str ESTAB 0 0 * 105580 * 105581 u_str ESTAB 0 0 * 105581 * 105580 u_dgr UNCONN 0 0 * 11954 * 6891 u_str ESTAB 0 0 /run/systemd/journal/stdout 11671 * 11670 u_dgr UNCONN 0 0 * 17702 * 6891 u_str ESTAB 0 0 * 11292 * 11293 u_str ESTAB 0 0 * 12861 * 12862 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str ESTAB 0 0 * 11293 * 11292 u_str ESTAB 0 0 * 27975 * 27976 u_dgr UNCONN 0 0 * 10439 * 6889 u_str ESTAB 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str ESTAB 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_dgr UNCONN 0 0 * 11962 * 6891 u_str ESTAB 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str ESTAB 0 0 * 11670 * 11671 u_str ESTAB 0 0 * 11879 * 11880 u_str ESTAB 0 0 * 28356 * 28364 u_str ESTAB 0 0 * 11010929 * 11010933 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str ESTAB 0 0 * 11070 * 11071 u_dgr UNCONN 0 0 * 12960 * 6891 u_str ESTAB 0 0 * 13433 * 13434 u_str ESTAB 0 0 /run/systemd/journal/stdout 18538 * 18537 u_dgr UNCONN 0 0 * 12292 * 6891 u_dgr UNCONN 0 0 * 10564 * 10563 u_str ESTAB 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str ESTAB 0 0 * 11071 * 11070 u_dgr UNCONN 0 0 * 12267064 * 6889 u_dgr UNCONN 0 0 * 11061 * 6891 u_str ESTAB 0 0 * 32131 * 0 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_dgr UNCONN 0 0 * 10563 * 10564 u_str ESTAB 0 0 * 11280 * 11281 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_dgr UNCONN 0 0 * 12280338 * 6891 u_dgr UNCONN 0 0 * 12278779 * 6891 u_str ESTAB 0 0 * 12044 * 12045 u_str ESTAB 0 0 * 19117 * 19118 u_str ESTAB 0 0 * 27976 * 27975 u_str ESTAB 0 0 /run/systemd/journal/stdout 19118 * 19117 udp UNCONN 0 0 *:36263 *:* udp UNCONN 0 0 *:bootpc *:* udp UNCONN 0 0 192.168.1.67:ntp *:* udp UNCONN 0 0 127.0.0.1:ntp *:* udp UNCONN 0 0 *:ntp *:* udp UNCONN 0 0 :::35479 :::* udp UNCONN 0 0 :::ntp :::* tcp LISTEN 0 128 127.0.0.1:6379 *:* tcp LISTEN 0 128 *:http *:* tcp LISTEN 0 128 *:ssh *:* tcp LISTEN 0 1 127.0.0.1:32000 *:* tcp ESTAB 0 23820 192.168.1.67:ssh 223.72.48.109:6574 tcp ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http tcp ESTAB 0 0 192.168.1.67:ssh 223.72.48.109:ufmp tcp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http tcp TIME-WAIT 0 0 192.168.1.67:43146 140.205.32.13:https tcp ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http tcp LISTEN 0 80 :::mysql :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -at State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.1:6379 *:* LISTEN 0 128 *:http *:* LISTEN 0 128 *:ssh *:* LISTEN 0 1 127.0.0.1:32000 *:* ESTAB 0 52 192.168.1.67:ssh 223.72.48.109:6574 TIME-WAIT 0 0 192.168.1.67:38438 100.100.18.50:http ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 ESTAB 0 0 192.168.1.67:34574 100.100.105.50:http ESTAB 0 0 192.168.1.67:ssh 223.72.48.109:ufmp CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:http ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 ESTAB 0 0 192.168.1.67:32832 106.11.248.51:http LISTEN 0 80 :::mysql :::* [root@iZ2ze2m3z176dpbiaolifiZ ~]# w 11:46:03 up 33 days, 12:42, 3 users, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 11Jul18 33days 0.00s 0.00s -bash root pts/0 223.72.48.109 11:37 6:19 0.02s 0.02s -bash root pts/1 223.72.48.109 11:42 3.00s 0.02s 0.00s w [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -atpn State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.1:6379 *:* users:(("redis-server",pid=10678,fd=4)) LISTEN 0 128 *:80 *:* users:(("nginx",pid=10631,fd=6),("nginx",pid=10630,fd=6)) LISTEN 0 128 *:22 *:* users:(("sshd",pid=3042,fd=3)) LISTEN 0 1 127.0.0.1:32000 *:* users:(("java",pid=11300,fd=4)) ESTAB 0 52 192.168.1.67:22 223.72.48.109:6574 users:(("sshd",pid=12257,fd=3)) ESTAB 0 0 127.0.0.1:32000 127.0.0.1:31000 users:(("wrapper",pid=11298,fd=6)) ESTAB 0 0 192.168.1.67:34574 100.100.105.50:80 users:(("aliyun_assist_u",pid=26309,fd=8)) ESTAB 0 0 192.168.1.67:22 223.72.48.109:6306 users:(("sshd",pid=12196,fd=3)) CLOSE-WAIT 401 0 192.168.1.67:55070 106.11.248.209:80 users:(("AliYunDun",pid=22713,fd=18),("AliYunDunUpdate",pid=22652,fd=18),("java",pid=11300,fd=18),("wrapper",pid=11298,fd=18)) ESTAB 0 0 127.0.0.1:31000 127.0.0.1:32000 users:(("java",pid=11300,fd=30)) ESTAB 0 0 192.168.1.67:32832 106.11.248.51:80 users:(("AliYunDun",pid=22713,fd=21)) LISTEN 0 80 :::3306 :::* users:(("mysqld",pid=12041,fd=18)) [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss state established Netid Recv-Q Send-Q Local Address:Port Peer Address:Port u_str 0 0 * 105582 * 105583 u_str 0 0 * 12281660 * 12281659 u_str 0 0 /run/systemd/journal/stdout 10378 * 10377 u_str 0 0 * 12281659 * 12281660 u_str 0 0 * 32222 * 0 u_str 0 0 * 10377 * 10378 u_str 0 0 * 105583 * 105582 u_str 0 0 * 11871 * 11872 u_str 0 0 * 11241 * 11294 u_str 0 0 * 18537 * 18538 u_str 0 0 /run/systemd/journal/stdout 11872 * 11871 u_str 0 0 * 105580 * 105581 u_str 0 0 * 105581 * 105580 u_str 0 0 /run/systemd/journal/stdout 11671 * 11670 u_str 0 0 * 11292 * 11293 u_str 0 0 * 12861 * 12862 u_str 0 0 /var/run/dbus/system_bus_socket 11294 * 11241 u_str 0 0 * 11293 * 11292 u_str 0 0 * 27975 * 27976 u_str 0 0 /run/systemd/journal/stdout 12862 * 12861 u_str 0 0 /run/systemd/journal/stdout 11010933 * 11010929 u_str 0 0 /run/systemd/journal/stdout 28364 * 28356 u_str 0 0 * 11670 * 11671 u_str 0 0 * 11879 * 11880 u_str 0 0 * 28356 * 28364 u_str 0 0 * 11010929 * 11010933 u_str 0 0 /var/run/dbus/system_bus_socket 11880 * 11879 u_str 0 0 * 11070 * 11071 u_str 0 0 * 13433 * 13434 u_str 0 0 /run/systemd/journal/stdout 18538 * 18537 u_str 0 0 /run/systemd/journal/stdout 11281 * 11280 u_str 0 0 * 11071 * 11070 u_str 0 0 * 32131 * 0 u_str 0 0 /var/run/dbus/system_bus_socket 13434 * 13433 u_str 0 0 * 11280 * 11281 u_str 0 0 /var/run/dbus/system_bus_socket 12045 * 12044 u_str 0 0 * 12044 * 12045 u_str 0 0 * 19117 * 19118 u_str 0 0 * 27976 * 27975 u_str 0 0 /run/systemd/journal/stdout 19118 * 19117 tcp 0 7772 192.168.1.67:ssh 223.72.48.109:6574 tcp 0 0 127.0.0.1:32000 127.0.0.1:31000 tcp 0 216 192.168.1.67:ssh 187.109.226.116:43703 tcp 0 0 192.168.1.67:34574 100.100.105.50:http tcp 0 0 192.168.1.67:ssh 223.72.48.109:ufmp tcp 0 0 127.0.0.1:31000 127.0.0.1:32000 tcp 0 0 192.168.1.67:32832 106.11.248.51:http [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -lnutp state established Netid Recv-Q Send-Q Local Address:Port Peer Address:Port tcp 0 52 192.168.1.67:22 223.72.48.109:6574 users:(("sshd",pid=12257,fd=3)) tcp 0 0 127.0.0.1:32000 127.0.0.1:31000 users:(("wrapper",pid=11298,fd=6)) tcp 0 0 192.168.1.67:34574 100.100.105.50:80 users:(("aliyun_assist_u",pid=26309,fd=8)) tcp 0 0 192.168.1.67:22 223.72.48.109:6306 users:(("sshd",pid=12196,fd=3)) tcp 0 0 127.0.0.1:31000 127.0.0.1:32000 users:(("java",pid=11300,fd=30)) tcp 0 0 192.168.1.67:32832 106.11.248.51:80 users:(("AliYunDun",pid=22713,fd=21)) tcp 0 0 192.168.1.67:22 113.252.47.186:39938 users:(("sshd",pid=12320,fd=3),("sshd",pid=12319,fd=3)) [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -s Total: 116 (kernel 156) TCP: 13 (estab 6, closed 0, orphaned 1, synrecv 0, timewait 0/0), ports 0 Transport Total IP IPv6 * 156 - - RAW 0 0 0 UDP 7 5 2 TCP 13 12 1 INET 20 17 3 FRAG 0 0 0 [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss -S State Recv-Q Send-Q Local Address:Port Peer Address:Port [root@iZ2ze2m3z176dpbiaolifiZ ~]# ss --help Usage: ss [ OPTIONS ] ss [ OPTIONS ] [ FILTER ] -h, --help this message -V, --version output version information -n, --numeric don't resolve service names -r, --resolve resolve host names -a, --all display all sockets -l, --listening display listening sockets -o, --options show timer information -e, --extended show detailed socket information -m, --memory show socket memory usage -p, --processes show process using socket -i, --info show internal TCP information -s, --summary show socket usage summary -b, --bpf show bpf filter socket information -Z, --context display process SELinux security contexts -z, --contexts display process and socket SELinux security contexts -N, --net switch to the specified network namespace name -4, --ipv4 display only IP version 4 sockets -6, --ipv6 display only IP version 6 sockets -0, --packet display PACKET sockets -t, --tcp display only TCP sockets -S, --sctp display only SCTP sockets -u, --udp display only UDP sockets -d, --dccp display only DCCP sockets -w, --raw display only RAW sockets -x, --unix display only Unix domain sockets -f, --family=FAMILY display sockets of type FAMILY -A, --query=QUERY, --socket=QUERY QUERY := {all|inet|tcp|udp|raw|unix|unix_dgram|unix_stream|unix_seqpacket|packet|netlink}[,QUERY] -D, --diag=FILE Dump raw information about TCP sockets to FILE -F, --filter=FILE read filter information from FILE FILTER := [ state STATE-FILTER ] [ EXPRESSION ] STATE-FILTER := {all|connected|synchronized|bucket|big|TCP-STATES} TCP-STATES := {established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|last-ack|listen|closing} connected := {established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing} synchronized := {established|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing} bucket := {syn-recv|time-wait} big := {established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listen|closing} [root@iZ2ze2m3z176dpbiaolifiZ ~]#
4.11.1 自定義cxz.service並放入到systemd管理單元;linux
4.11.2 添加服務後,使用systemctl deamon-reload進行systemd服務的從新加載;ios
firewalld-cmd --set-default-zone=homenginx
firewalld-cmd --list-all-zonesgit