美文网首页
tomcat部署为服务

tomcat部署为服务

作者: yangyangrenren | 来源:发表于2018-05-04 11:34 被阅读0次

    使用命令 service tomcat start 启动tomcat报错

    Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
    

    然后,使用命令 su - tomcat -s /bin/bash -c "/usr/local/apache-tomcat-8.5.28/bin/startup.sh" ,直接开启服务,运行时候,会报错

    ERROR: WARNING: unable to obtain file audio codec with ffprobe
    

    但是,当直接用log中记录的命令,直接在shell中执行,却是没有问题的,一切正常。而且,查看/usr/local/bin/目录下面,查看ffmpeg以及ffprobe的文件权限,是所有用户,都有执行权限的。

    -rwxrwxrwx  1 root root  53M Apr 29 05:14 ffmpeg
    -rwxrwxrwx  1 root root  53M Apr 29 05:14 ffprobe
    

    其父目录

    drwxr-xr-x  2 root   root   4.0K Apr 21 09:51 bin
    

    也是有权限进入执行的。

    Linux下Tomcat8.5安装与环境
    复制tomcat的bin目录下的catalina.sh 文件到/etc/init.d/tomcat(tomcat文件),其他的可以参考https://blog.csdn.net/yangyangrenren/article/details/73742308
    如果是centos,就可以直接参考https://blog.csdn.net/Hello_World_QWP/article/details/78862277

    相关文章

      网友评论

          本文标题:tomcat部署为服务

          本文链接:https://www.haomeiwen.com/subject/vgmqrftx.html