有时候装了apache,里面没有httpd,重启就用这个:apachectl -k restart tomcat有时shutdown那个脚本运行后有问题,重启用这个:sudo /etc/init.d/tomcat6 restart