amazon-linux

letsencrypt failed with ImportError: No module named interface

雨燕双飞 提交于 2020-02-03 05:14:07
问题 I'm using Amazon linux, and I followed some steps for using letsencrypt that easily found in google search, but all it fails with: Error: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt: Traceback (most recent call last): File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module> from certbot.main import main File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 11, in <module> import zope

Error while Installing MongoDB on AWS Amazon Linux

a 夏天 提交于 2020-01-07 05:37:07
问题 The error is: Public key for mongodb-org-3.4.4-1.amzn1.x86_64.rpm is not installed I am trying to install MongoDB as mentioned in official MongoDB documentaion HERE. 回答1: Lets try from this documentation: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-linux/ Step1: Download the binary files for the desired release of MongoDB. Step2: Extract the files from the downloaded archive. Step3: Copy the extracted archive to the target directory. Step4: Ensure the location of the binaries

AWS Cloud9: Python virtual environment is not actually activated. Uses system-wide python

馋奶兔 提交于 2020-01-03 16:22:46
问题 Just starting out with AWS Cloud9. Started a new project (Django with Beanstalk). Opened Cloud9 environment, typed in virtualenv --python=/usr/bin/python3.6 venv then, when i type: sourse venv/bin/activate i see: (venv) USERNAME:$ So, it looks ok, but python --version gives me 2.7. Even more, when I install packages with "activated" virtual environment I get them installed in system-wide python 2.7. 来源: https://stackoverflow.com/questions/52108586/aws-cloud9-python-virtual-environment-is-not

Run .NET programs on Amazon Linux AMI

大憨熊 提交于 2019-12-24 07:09:28
问题 How can I run a .NET program on an Amazon Linux AMI, either by installing Mono or .NET Core? Or is the runtime already installed? I tried yum -y install mono but got No package mono available , and yum -y install mono-complete doesn't work either. I couldn't find any way to install .NET core either - there are no packages listed when I run yum search dotnet (or yum search mono for that matter). 回答1: I managed to install .NET Core by following this tutorial - Deploy ASP.NET Core Application On

How to upgrade docker in latest Amazon linux AMI

谁说我不能喝 提交于 2019-12-23 13:08:55
问题 I am using Amazon linux AMI in Opsworks and the Amazon linux AMI are the latest one (OS Amazon Linux 2017.03). The issue is that this AMI comes with docker version 17.03.2-ce , however I need to install version 17.05 or later (because I want to modify "ingress" network in docker swarm which is only possible in the latest docker versions.) Looks like Amazon officially supports version only till 17.03. If I try to upgrade the docker manually from the centos rpm/repository, I get the following

Setting up Supervisord on a AWS AMI Linux Server [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-20 08:22:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . I'm trying to get supervisor working to make sure my queue system is always running. Here are the steps I took, which I pieced together from various sources: (Ran as root or super user) 1) $ easy_install supervisor 2) $ echo_supervisord_conf > /etc/supervisord.conf 3) $ sudo vi supervisord.conf 4) Pasted the

Starting a postgres SQL 9.6 Server on Amazon Linux returns unrecognized service

本小妞迷上赌 提交于 2019-12-13 05:16:22
问题 I am attempting to start a Postgres SQL server on amazon Linux using the command sudo service postgresql start I installed the server using this method. I have added it here for simplicity sudo rpm -i https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm and then sudo yum install postgresql96-server.x86_64 after which i did this to install the command line tools for postgres sudo yum install postgresql96.x86_64 postgresql96-libs.x86_64 Any

How to fix “usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed” error in Linux? [duplicate]

本小妞迷上赌 提交于 2019-12-12 19:44:22
问题 This question already has answers here : Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed (9 answers) Closed 8 months ago . I'm trying to setup a jenkins server to host my automation framework with Selenium-webdriver(3.142.0) and ruby(2.3.7) on Amazon Linux. If I try to invoke a chromedriver using my script, it says, "Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to

How To Use Cloud Init To mount an unformatted EBS volume

做~自己de王妃 提交于 2019-12-11 09:09:35
问题 Context I am using the https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Plugin for jenkins which allows me to dynamically provision new cloud instances as build slaves in AWS EC2. I am launching ami-d834aba1 (Amazon Linux 2017.09.1). The plugin supports providing user-data and block device mapping too, currently I provide config like this after reading https://cloudinit.readthedocs.io/en/latest/ User Data #cloud-config repo_update: true repo_upgrade: all package_upgrade: true bootcmd: - [