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'