文件操作 - httpd.log
返回文件管理
返回主菜单
删除本文件
文件: /var/log/ai_logs/services/httpd.log
编辑文件内容
● httpd.service - Web server Apache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2020-06-27 18:33:13 CEST; 3s ago Process: 14715 ExecReload=/usr/local/apache/bin/apachectl graceful (code=exited, status=0/SUCCESS) Process: 30588 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE) Main PID: 1202 (code=exited, status=1/FAILURE) Jun 27 18:33:12 mail.planetcloud-host.com systemd[1]: Starting Web server Apache... Jun 27 18:33:13 mail.planetcloud-host.com systemd[1]: httpd.service: control process exited, code=exited status=1 Jun 27 18:33:13 mail.planetcloud-host.com systemd[1]: Failed to start Web server Apache. Jun 27 18:33:13 mail.planetcloud-host.com systemd[1]: Unit httpd.service entered failed state. Jun 27 18:33:13 mail.planetcloud-host.com systemd[1]: httpd.service failed. netstat info: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:2086 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:58342 0.0.0.0:* LISTEN 1428/sshd tcp 0 0 0.0.0.0:2087 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 1340/amavisd (ch17- tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 8196/master tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 8196/master tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 1400/memcached tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 3314/Xvnc tcp 0 0 0.0.0.0:2030 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 25576/dovecot tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 16182/local.cf -m5 tcp 0 0 0.0.0.0:2095 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:2031 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 25576/dovecot tcp 0 0 0.0.0.0:2096 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 8196/master tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 3314/Xvnc tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 29689/pure-ftpd (SE tcp 0 0 5.249.157.183:53 0.0.0.0:* LISTEN 4015/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4015/named tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3119/dnsmasq tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 13328/cupsd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 8196/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 4015/named tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 25680/opendkim tcp 0 0 127.0.0.1:2812 0.0.0.0:* LISTEN 1503/monit tcp 0 0 127.0.0.1:2302 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 25576/dovecot tcp 0 0 0.0.0.0:2304 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 25576/dovecot tcp 0 0 0.0.0.0:2082 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:2083 0.0.0.0:* LISTEN 1137/cwpsrv: master tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 25576/dovecot tcp6 0 0 :::58342 :::* LISTEN 1428/sshd tcp6 0 0 ::1:10024 :::* LISTEN 1340/amavisd (ch17- tcp6 0 0 :::3306 :::* LISTEN 3137/mysqld tcp6 0 0 :::587 :::* LISTEN 8196/master tcp6 0 0 :::11211 :::* LISTEN 1400/memcached tcp6 0 0 :::5901 :::* LISTEN 3314/Xvnc tcp6 0 0 ::1:783 :::* LISTEN 16182/local.cf -m5 tcp6 0 0 :::465 :::* LISTEN 8196/master tcp6 0 0 :::6001 :::* LISTEN 3314/Xvnc tcp6 0 0 :::21 :::* LISTEN 29689/pure-ftpd (SE tcp6 0 0 ::1:53 :::* LISTEN 4015/named tcp6 0 0 ::1:631 :::* LISTEN 13328/cupsd tcp6 0 0 :::25 :::* LISTEN 8196/master tcp6 0 0 ::1:953 :::* LISTEN 4015/named tcp6 0 0 ::1:2812 :::* LISTEN 1503/monit tcp6 0 0 :::1311 :::* LISTEN 5965/dsm_om_connsvc udp 0 0 0.0.0.0:5353 0.0.0.0:* 866/avahi-daemon: r udp 2304 0 0.0.0.0:38148 0.0.0.0:* 27338/savscand udp 0 0 192.168.122.1:53 0.0.0.0:* 4015/named udp 0 0 5.249.157.183:53 0.0.0.0:* 4015/named udp 0 0 127.0.0.1:53 0.0.0.0:* 4015/named udp 0 0 192.168.122.1:53 0.0.0.0:* 3119/dnsmasq udp 0 0 0.0.0.0:67 0.0.0.0:* 3119/dnsmasq udp 0 0 127.0.0.1:323 0.0.0.0:* 898/chronyd udp 0 0 0.0.0.0:58597 0.0.0.0:* 866/avahi-daemon: r udp 0 0 0.0.0.0:50689 0.0.0.0:* 27379/savscand udp 0 0 0.0.0.0:11211 0.0.0.0:* 1400/memcached udp 0 0 0.0.0.0:60475 0.0.0.0:* 27338/savscand udp 4608 0 0.0.0.0:44872 0.0.0.0:* 27379/savscand udp6 0 0 ::1:53 :::* 4015/named udp6 0 0 ::1:323 :::* 898/chronyd udp6 0 0 :::11211 :::* 1400/memcached Kernel: Linux mail.planetcloud-host.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux CPU info: model name : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz Release: CentOS Linux release 7.8.2003 (Core) Arch: x86_64 Virtualization Type: Memory: total used free shared buff/cache available Mem: 15854 3557 661 447 11635 11519 Swap: 8098 535 7563 MySQL info: mysql Ver 15.1 Distrib 10.1.45-MariaDB, for Linux (x86_64) using readline 5.1 Disk Info: Filesystem Size Used Avail Use% Mounted on devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 490M 7.3G 7% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sda2 908G 57G 805G 7% / /dev/sdb1 114G 8.8G 99G 9% /mnt/usb-Kingston_DataTraveler_3.0_80C5F289C0ECE32088610AAA-0:0-part1 /dev/sda1 984M 187M 747M 20% /boot tmpfs 1.6G 60K 1.6G 1% /run/user/0 # # /etc/fstab # Created by anaconda on Thu Jun 18 07:54:38 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # LABEL=boot /boot ext3 defaults 1 1 LABEL=root / ext3 defaults 1 1 LABEL=swap swap swap defaults 0 0 /dev/disk/by-id/usb-Kingston_DataTraveler_3.0_80C5F289C0ECE32088610AAA-0:0-part1 /mnt/usb-Kingston_DataTraveler_3.0_80C5F289C0ECE32088610AAA-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0 Apache PHP info: PHP 7.3.3 (cli) (built: Jun 11 2020 23:21:14) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies Apache start script check: CWP Admin check: /usr/local/cwpsrv/htdocs/admin CWP version: 0.9.8.994
修改文件时间
将文件时间修改为当前时间的前一年
删除文件