728x90
반응형
AWS(28)
-
AWS EC2 사용자별 PPK 생성
// 새로운 사용자 추가 sudo useradd -m "아이디" // 해당 사용자로 로그인 sudo su "아이디" cd ~ ssh-keygen cd .ssh/ cat id_rsa.pub >> authorized_keys chmod 600 authorized_keys cat id_rsa // 로컬 윈도우의 경우 private key 내용으로 로컬에서 .pem 생성, puttygen 으로 .ppk 생성하여 사용
2023.11.15 -
[EC2 APM 제거]
1 설치된 패키지 찾아 삭제 yum list installed | grep php yum list installed | grep mysql yum remove php* yum remove mysql* 2 캐시 삭제 yum clean all // rm -rf /var/cache/yum 보다 yum clean all을 쓰는 것이 권장됨
2023.11.15 -
AWS EC2 그누보드 설치
서버에 그누보드 설치할때 디렉토리명이 g5여야 설치가 됨 예를 들어 www에 설치하려고 하면 에러가 났음
2023.07.21 -
[EC2 Laravel8] storage/logs/laravel.log" could not be opened in append mod
UnexpectedValueException The stream or file "/home/asdf/www/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied The exception occurred while attempting to log 로그와 session, view cache 등이 저장되는 storage 디렉터리와 bootstrap 디렉터리는 laravel 을 구동하는 웹 서버가 읽고 쓸 수 있도록 설정해야 합니다. // 현재 상태 drwxrwxr-x 5 asdf asdf 46 Apr 12 2022 storage //apache 그룹에게 storage 와 boots..
2023.07.20 -
[EC2 Laravel8] Composer 설치
출처: sudo curl -sS https://getcomposer.org/installer | sudo php # curl -sS 옵션 = curl --silent --show-error # Run curl in silent mode, and show no output unless there is an error. All settings correct for using Composer Downloading... Composer (version 2.5.4) successfully installed to: /home/ec2-user/composer.phar Use it: php composer.phar sudo mv composer.phar /usr/local/bin/composer sudo ln -s /..
2023.07.20 -
[EC2] 사용자별 홈 디렉토리 설정, 가상호스트 설정
'* 가상호스트(Virtual host) ? 하나의 웹 서버로 여러 웹 사이트를 운영할 수 있는 기술. 클라이언트가 요청을 보내는 여러 IP, 도메인, 포트번호에 대해 각각 다른 웹 사이트를 띄우기 위한 기술. 추후 확장성을 고려해 가상 호스트를 사용하면서 단일 웹 사이트를 제공하려면 메인 서버 설정에서 DocumentRoot 및 지시자를 모두 주석 처리한 후, 각 웹 사이트에 대한 설정은 httpd-vhosts.conf 파일에서만 하는 것이 더 깔끔하다. 출처: cd /etc/httpd/conf vi httpd.conf # 내용수정 시작 Options Indexes FollowSymLinks AllowOverride None Require all granted Include /etc/httpd/conf..
2023.07.20