[ Top Command ]
# top -bn1 | grep php-fpm
# top -bn1 | grep apache
[ Mail Test From CLI ]
# echo "Testing relay" | mailx -r "system@mylocal.com" -s "test subject" -S smtp="127.0.0.1:25" user1@mylocal.com
# echo "This is message body" | mail -s "This is Subject" user1@mylocal.com
[ Journalctl Command ]
# journalctl -af
[ Live Apache/httpd logs monitor using apachetop command ]
# yum install apachetop
# apachetop /var/log/httpd/access_log
[ Screen Command ]
[add task in screen]
# screen
[list]
# screen -list
[reattached]
# screen -r image
[detached]
# Ctr + ad
[ Flush IPTABLES ]
# iptables -L (check iptables)
# iptables -F INPUT && iptables -F OUTPUT (flush iptables)
[disable & stop firewall]
# systemctl disable firewalld.service
# systemctl stop firewalld.service
# top -bn1 | grep php-fpm
# top -bn1 | grep apache
[ Mail Test From CLI ]
# echo "Testing relay" | mailx -r "system@mylocal.com" -s "test subject" -S smtp="127.0.0.1:25" user1@mylocal.com
# echo "This is message body" | mail -s "This is Subject" user1@mylocal.com
[ Journalctl Command ]
# journalctl -af
[ Live Apache/httpd logs monitor using apachetop command ]
# yum install apachetop
# apachetop /var/log/httpd/access_log
[ Screen Command ]
[add task in screen]
# screen
[list]
# screen -list
[reattached]
# screen -r image
[detached]
# Ctr + ad
[ Flush IPTABLES ]
# iptables -L (check iptables)
# iptables -F INPUT && iptables -F OUTPUT (flush iptables)
[disable & stop firewall]
# systemctl disable firewalld.service
# systemctl stop firewalld.service
No comments:
Post a Comment