报错如下,提示权限不足
-bash: ./startup.sh: Permission denied
只需通过以下命令修改权限即可
chmod u+x *.sh
[root@iZ2zefafv2ht3evy9x5ueqZ bin]# ./startup.sh
-bash: ./startup.sh: Permission denied
[root@iZ2zefafv2ht3evy9x5ueqZ bin]# chmod u+x *.sh
[root@iZ2zefafv2ht3evy9x5ueqZ bin]# ./startup.sh
Using CATALINA_BASE: /usr/src/apache-tomcat-8.5.75
Using CATALINA_HOME: /usr/src/apache-tomcat-8.5.75
Using CATALINA_TMPDIR: /usr/src/apache-tomcat-8.5.75/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/src/apache-tomcat-8.5.75/bin/bootstrap.jar:/usr/src/apache-tomcat-8.5.75/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
在Linux环境中遇到启动脚本`startup.sh`执行权限不足的问题,通过运行`chmod u+x *.sh`命令赋予所有.sh文件执行权限。之后成功启动了Apache Tomcat,显示出相关环境变量设置和启动信息。
2178

被折叠的 条评论
为什么被折叠?



