Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在AWS中编辑上传的war文件中的内容_Amazon Web Services - Fatal编程技术网

Amazon web services 如何在AWS中编辑上传的war文件中的内容

Amazon web services 如何在AWS中编辑上传的war文件中的内容,amazon-web-services,Amazon Web Services,目前,我已经从beanstalk向AWS上传了一个war文件。我想编辑war文件中applicationContext-datasource.xml中的一些信息。那么,我如何编辑?我可以从SSH编辑这些信息吗。但我不知道war文件在哪里以及如何编辑。和任何其他gui来编辑war文件中的信息。您可以通过ssh连接到Elastic Beanstalk应用程序生成的实例,但您需要使用.pem文件连接到ec2实例,我不确定您是否有权访问.pem文件。通常它位于/var/lib/tomcat目录中。但是您

目前,我已经从beanstalk向AWS上传了一个war文件。我想编辑war文件中applicationContext-datasource.xml中的一些信息。那么,我如何编辑?我可以从SSH编辑这些信息吗。但我不知道war文件在哪里以及如何编辑。和任何其他gui来编辑war文件中的信息。

您可以通过ssh连接到Elastic Beanstalk应用程序生成的实例,但您需要使用.pem文件连接到ec2实例,我不确定您是否有权访问.pem文件。通常它位于/var/lib/tomcat目录中。但是您可以使用find命令来归档war文件。也不建议在服务器本身中编辑文件。更好地利用版本控制管理,如github或bit bucket