9*9乘法表
判断服务是否开启
1.查看80端口是否被监听
[root@localhost ~]# ss -an | grep 80
tcp LISTEN 0 128 *:80 *:*
2.查看80端口/httpd服务是否开启
[root@localhost ~]# netstat -lntup | grep 80
tcp6 0 0 :::80 :::* LISTEN 3204/httpd[root@localhost ~]# netstat -lntup | grep httpd
tcp6 0 0 :::80 :::* LISTEN 3204/httpd
3.查看本地进程
[root@localhost ~]# ps -ef | grep httpd
root 3204 1 0 20:28 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 3207 3204 0 20:28 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 3208 3204 0 20:28 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 3209 3204 0 20:28 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 3210 3204 0 20:28 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 3537 2983 0 20:37 pts/1 00:00:00 grep --color=auto httpd