1:netstat -ntlp //查看当前所有tcp端口
2:如何查看linux是否安装php环境?
查看版本号
php -v
如果安装了,会显示版本号
3:ps -ef | grep httpd :检查httpd进程的命令
ps -e| grep httpd
4:CentOS7,那我们就来看看新的systemctl工具操作命令组
systemctl start httpd.service #启动 systemctl stop httpd.service #停止 systemctl restart httpd.service #重启
5:CentOS7检查httpd状态
systemctl status httpd.service
6:重启 apache 服务
启动 systemctl start httpd 停止 systemctl stop httpd 重启 systemctl restart httpd
7: 查看内存说明
free -m
8:cat /etc/redhat-release 查看CentOS版本