Questions tagged [amazon-linux-2]
251 questions
0
votes
2 answers
known_hosts file permissions issue when trying to git pull from PHP
I'm trying to set up a simple PHP script that can do a git pull when you go to a particular URL on an AWS Amazon Linux 2 AMI test web server I have set up.
I ran into some issues trying to do that though, and have since been following this article…

HartleySan
- 7,404
- 14
- 66
- 119
0
votes
1 answer
chrome-aws-lambda Amazon linux 2 getting Error: socket hang up
Background:
I have this code working in AWS linux AMI with node 8 for lambda. Since Amazon has discontinued node 8 in lambda I have been working on transitioning to node 10 which now uses the Amazon linux 2. Since upgrading I have been unable to…

mjtru
- 21
- 4
0
votes
0 answers
Trying to set cron log, but no is saved on Amazon linux2
I'm trying to get a success&error log, but no logging. My environment is Amazon Linux 2.
/etc/crontab */1 * * * * /home/ec2-user/gaMain.sh >> /var/log/galog.log 2>&1
/var/log/cron (ec2-user) CMD (/home/ec2-user/gaMain.sh >> /var/log/galog.log…
0
votes
2 answers
Zabbix not display text on graphs
I'm running zabbix 4 on EC2 Amazon Linux 2 instance. After last update:
May 29 08:06:46 Updated: zabbix-web-mysql-4.0.8-1.el7.noarch
May 29 08:06:46 Updated: zabbix-web-4.0.8-1.el7.noarch
May 29 08:06:46 Updated: zabbix-get-4.0.8-1.el7.x86_64
May 29…

kkarczewski
- 331
- 3
- 19
0
votes
1 answer
Where do I place the deployment files for asp net core application
I have a self contained asp net core web application and I dont know where in the file system I need to place the files. I will be using the Kestrel web server without a reverse proxy as it will be behind the AWS application load balancer. I will…

Graeme
- 46
- 4
-1
votes
1 answer
How to install these specific packages to `amazonlinux2`
Well, basically I was using a ubuntu distribution of docker image and had to run the following command to install the exact packages as below into it:
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true \
&& apt-get -q update \
…

João Casarin
- 674
- 2
- 9
- 27
-1
votes
1 answer
Why is systemd service failing on AWS Amazon Linux 2?
I have a Node.js application cloned on an AWS EC2 instance running Amazon Linux 2.
I can execute the project's server.js file just fine:
[ec2-user@ip-*********** portfolio_v3]$ nvm use 16
Now using node v16.19.1
[ec2-user@ip-***********…

Aaron Parisi
- 464
- 7
- 15
-1
votes
1 answer
how to setup bash script to send a mail when new user account is created in Linux
I need to setup bash script to send a mail when new ssh user account is created in AWS Ec2 Linux.
I have used below script but its not working. Let me know anything wrong in below script or share the scripts if anything related to this task.
#Set…

Bala
- 117
- 4
- 13
-1
votes
1 answer
How to install new relic on amazon linux
I have have unzipped newrelic files onto amazon linux and have both the installer.sh and config_defaults.sh
I have the license key in the parameter store which I am able to call
I install newrelic with the following command
sudo ./installer.sh…

user11036847
- 455
- 1
- 4
- 12
-1
votes
2 answers
AWS EC2 Amazon Linux 2 How To Run Java on Boot
I've been looking all over the internet for a solution for this one and I just can't seem to get it right.
I have a command that I would like to start when my AWS EC2 server boots.
java -Xmx1740M -Xms1740M -jar /home/ec2-user/server.jar nogui
I've…

JLO64
- 17
- 5
-2
votes
2 answers
Moving users from one Ec2 machine to another
I have an Amazon Linux machine, where users log in and connect to other servers (Bastion server), now I have upgraded my Linux machine to.
How do I move all the users present in server1 to Server2
Things I have tried:
created snapshots of…

Ricky Vijay
- 101
- 1
- 8