Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- peer review (3)
- PHP, dump varailbes in a format way
- "Unusual traffic from your computer network" from blogger
- Install APXS in Redhat Linux
- JavaScript, remove trailing insignificant zeros after toFixed function
- Update member directory
- Set Windows path command line
- JavaScript: add days to current date
- DataTable table order by numeric, not by text
Monday, May 12, 2014
Monitor Apache, PHP and MySQL in Ubuntu
1) Check if apache is running in Ubuntu
ps aux|grep apache
sudo service apache restart
check apache port status (port 80)
sudo netstat -nap |grep apache
2) Check if mysql is running in Ubuntu
ps aux|grep mysql
sudo service mysql restart
connect to mysql
mysql -uroot -p
check mysql port status (port 3306)
netstat -nap |grep mysql
3) Check php
php --version
php --info
4) email server exim
ps aux|grep exim
sudo service exim4 restart
check if exim port is listening (port 25)
sudo netstat -nap |grep exim
All these four log files are located in /var/log/
5) Install webmin for further monitoring
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment