php开发YII2框架配置与开发使用Linux基本操作

Linux service的关闭开启以及软件的安装和卸载

2017-11-28  本文已影响15人  三不小青年

1systemctl 命令管理服务

Linux中如何启动、重启、停止、重载服务以及检查服务(如 httpd.service Apache)状态

#systemctl start httpd.service

#systemct lrestart httpd.service

#systemctl stop httpd.service

#systemctl reload httpd.service

#systemctl status httpd.service

#systemct lkill httpd

#systemct llist-unit-files --type=service 列出所有状态

2卸载PHP

1.yum list Installed | grep php 先找到php对应的程序

2删除某些PHP的时候 系统自动的会把对应的依赖也删除掉。一直到完全删除为止。

# yum remove php56w-common.x86_64 

3卸载mysql

1 查看有没有安装包:yum list mysql*

2 卸载mysql

yum -y remove mysql*

上一篇下一篇

猜你喜欢

热点阅读