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版本
原文作者:祈澈姑娘 技术博客:https://www.jianshu.com/u/05f416aefbe1 90后前端妹子,爱编程,爱运营,文艺与代码齐飞,魅力与智慧共存的程序媛一枚.
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有