亚马逊EC2 FTP写权限亚马逊、权限、FTP

由网友(你若是海,我便为鱼)分享简介:我能够成功连接使用FileZilla的到Amazon EC2实例。我使用的用户名是EC2用户。所以,当我尝试我的应用程序的战争转移到Tomcat它说I am able to successfully connect to amazon ec2 instance using filezilla. The Usernam...

我能够成功连接使用FileZilla的到Amazon EC2实例。我使用的用户名是EC2用户。所以,当我尝试我的应用程序的战争转移到Tomcat它说

I am able to successfully connect to amazon ec2 instance using filezilla. The Username i used is ec2-user. So when i try to transfer my application war to tomcat it says

/var/lib/tomcat6/webapps/RealEstateERP.war: open for write: permission denied
 Error: File transfer failed.

我试图改变许可使用FileZilla的,但不允许这样做。我知道有没有写权限,但我如何改变它。

I tried to change permission use filezilla but not allowed to do so. I know there is no write permission, but how do i change it.

我是个新的Linux。请帮我。

I ma new to linux. Please help me.

推荐答案

在 EC2用户没有写权限在/ var / lib中/ tomcat6中/ webapps /下的文件。只有根用户可以这样做。你在这里两种方法可以做到这一点:

The ec2-user don't have permission to write files in /var/lib/tomcat6/webapps/. Only root user can do so. You have two ways here to do so:

1)将文件复制到/ home / EC2用户/使用FileZilla的。现在,SSH进入linux机通过腻子。使用命令切换到root用户须藤-S 。然后在/ var / lib中/ tomcat6中/ webapps /下使用命令从/家庭/ EC2用户复制文件的CP -i RealEstateERP.war的/ var / lib中/ tomcat6中/ webapps /下

1) Copy files to /home/ec2-user/ using filezilla. Now SSH into linux machine through putty. Change to root user using command sudo -s. Then copy file from /home/ec2-user to /var/lib/tomcat6/webapps/ using command cp -i RealEstateERP.war /var/lib/tomcat6/webapps/.

2)SSH进入linux机通过putty.Change以root用户须藤-S .Provide写权限上的/ var / lib中/ tomcat6中/ webapps中的所有用户/使用命令搭配chmod 777的/ var / lib中/ tomcat6中/ webapps /下。然后把文件直接从FileZilla的复制到目录中。

2) SSH into linux machine through putty.Change to root user using command sudo -s.Provide write permission to all users on /var/lib/tomcat6/webapps/ using command chmod 777 /var/lib/tomcat6/webapps/. Then copy files to directory directly from filezilla.

阅读全文

相关推荐

最新文章