1、tomcat7目录 /usr/local/tomcat7
   切换到tomcat所在目录:cd /usr/local/tomcat7
   启动tomcat:bin/startup.sh
   关闭tomcat:bin/shutdown.sh
2、apache目录 /etc/apache2 网站目录var/www 注:ubuntu下apache配置文件非httpd.conf,而是apache2.conf
   启动apache:service apache2 start
   重启apache:service apache2 restart
   关闭apache:servcie apache2 stop
3、mysql目录 /etc/mysql
   启动apache:service mysql start
   重启apache:service mysql restart
   关闭apache:servcie mysql stop
4、phpmyadmin目录 /usr/share/phpmyadmin
5、php目录 /etc/php5 php.ini目录 /etc/php5/apache2