1:異常信息
[yfk@localhost bin]$ ./catalina.sh
...
stop n Stop Catalina, waiting up to n seconds for the process to end
stop -force Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running
stop n -force Stop Catalina, wait up to n seconds and then use kill -KILL if still running
configtest Run a basic syntax check on server.xml - check exit code for result
version What version of tomcat are you running?
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is defined
2:錯誤原因(centOs6未安裝apr)
2.1下載安裝包
wget http:
//apache.fayea.com/apache-mirror/apr/apr-1.5.0.tar.gz
wget http:
//apache.fayea.com/apache-mirror/apr/apr-util-1.5.3.tar.gz
2.2 root用戶進行安裝
參照 https://blog.csdn.net/weixin_34368949/article/details/91895096
3:apr安裝失敗
rm: cannot remove `libtoolT': No such file or directory
vi /../apr-1.5.0/configure里面 RM='$RM -f' 這里的$RM后面一定有一個空格。 如果后面沒有空格,直接連接減號,就依
然會報錯。把RM='$RM'改為RM='$RM -f'