页面“Centos7 systemctl基础用法”与“Php相关软件”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
(导入1个版本)
 
docker>Evan
 
第1行: 第1行:
<pre>
+
= 日志=
centos 7启动方式
+
php-syslog-ng
  
 +
[https://www.oschina.net/p/seaslog PHP 日志扩展 SeasLog]
  
  centos6使用的是/etc/rc.d/init.d/functions启动centos7使用的是systemd启动
+
[[category:php]]
  systemd启动脚本方式
 
  systemctl enable httpd.service #自启动某服务
 
  systemctl disable httpd.service #禁用开机启动
 
  systemctl status httpd.service #查看服务状态
 
  systemctl list-units --type=service #查看所有服务
 
 
 
  systemctl start httpd.service
 
  systemctl stop httpd.service
 
  systemctl restart httpd.service
 
 
 
  systemctl is-enabled httpd #直看httpd服务是否开机启动
 
 
 
  也可以用于管理系统重启系统
 
  systemctl reboot关闭系统
 
  systemctl poweroffCPU停止工作systemctl halt暂停系统
 
  systemcti suspend休眠
 
  systemctl hibernate进入救援模式-单用模式systemctl rescue
 
 
 
</pre>
 
 
 
[[Nginx on centos7]]
 
 
 
[[Centos7初始化]]
 
[[category:linux]][[category:ops]]
 

2019年2月20日 (三) 03:57的版本

日志

php-syslog-ng

PHP 日志扩展 SeasLog