티스토리 뷰

카테고리 없음

AWS

DEV LION 2024. 8. 23. 15:24

 


AWS EC2 접속
> sudo ssh -i jenkins.pem ec2-user@13.60.206.142

 

NGINX 설치

amazon-linux-extras list | grep nginx
sudo amazon-linux-extras install nginx
sudo amazon-linux-extras install nginx1
sudo systemctl start nginx
sudo systemctl status nginx
which nginx
cd /usr/sbin/nginx
where is nginx
whereis nginx
/usr/share/nginx

 

 

ssh-keygen 생성방법 (.pem 없이 접속 방법)

> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/Devkhlim/.ssh/id_rsa): 
Created directory '/Users/Dev/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/Dev/.ssh/id_rsa
Your public key has been saved in /Users/Dev/.ssh/id_rsa.pub

 

/Users/Dev/.ssh/id_rsa.pub 의 내용을 원격 서버에 추가

 

 

 

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함