摘要:
直接去http://tomcat.apache.org下载二进制包(Binary Distributions)就不需要安装了,解压后直接运行bash文件即可运行Tomcat。事先要设置好JAVA_HOMEecho $JAVA_HOME/opt/java/jdk1.6.0_25开启:$ /home/orisun/develop/apache-tomcat-7.0.16/bin/startup.sh停止:/home/orisun/develop/apache-tomcat-7.0.16/bin/shutdown.sh当然每次这么启动也太麻烦了,搞个简短一点的命令,在~/.bashrc中添加:ali 阅读全文
摘要:
卸载apache首先停止服务sudo /etc/init.d/apache2 stop再卸载sudo apt-get --purge remove apache2sudo apt-get --purge remove apache2.2-commonsudo apt-get autoremove (此命令会自动卸载PHP)安装apachesudo apt-get install apache2启动、停止和重启因为apache2ctl命令在/usr/sbin下面,所以可以直接这样:sudo apache2ctl -k startsudo apache2ctl -k stopsudo apache 阅读全文