Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- Install APXS in Redhat Linux
- react-pdf, display pdf in react.js
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- React: connect(mapStateToProps, mapDispatchToProps)
- 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