Buf*_*net 3 linux apache-http-server permissions amazon-ec2
嗨,我已经在 ec2 实例上通过 yum 设置了 tomcat 7。默认情况下,我可以通过启动 ec2 实例的 aws 访问用户 ec2-user。
我正在尝试使用以下命令简单地查看我的 tomcat 日志:
cd: /usr/share/tomcat7/logs/
Run Code Online (Sandbox Code Playgroud)
我收到错误:权限被拒绝
ls -al 显示tomcat7文件夹的权限为:drwxrwxr-x 3 root tomcat tomcat7
日志显示相同:lrwxrwxrwx 1 root tomcat logs
我已经读到 ec2-user 具有 root 权限。
我尝试使用 cd 命令执行 sudo,但出现错误:sudo: cd: command not found
我怎样才能进入这个目录来查看我的日志?
谢谢!