Server 5

nginx restart 안되는 경우

nginx 오류가 발생하여 아래와 같은 결과가 출력되는 경우에 대한 trouble shootingJob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.이럴 경우 위에서 이야기하듯 error code를 확인하도록 journalctl -xe 과 sudo systemctl status nginx.service 명령을 실행하여 확인해보면 Active: Failed 인 상태일 것이다. 그리고 error log 를 확인하여 보면 bind() to 0.0.0.0:443과 0.0.0.0:80 failed ..

Server 2022.09.17

장고 https 배포 참고용

https://wikidocs.net/164372 4-16 SSL 이제 브라우저에서 고정 IP 대신 도메인을 입력하여 서버에 접속할수 있게 되었다. 하지만 브라우저의 주소창을 보면 다음과 같이 주의 요함 이라는 경고 메시지가 표시된다. ... wikidocs.net https://windybay.net/post/10/ DigitalOcean에 Django 프로젝트 배포하기 (1) 새로 블로그를 시작하면서 호스팅을 디지털오션으로 옮겼다. 이전 버전 블로그는 pythonanywhere.com 에서 배포를 했었다. pythonanywhere는 서버쪽 … windybay.net https://whatisthenext.tistory.com/123 Nginx 이해하기 및 기본 환경설정 세팅하기 NGINX Nginx..

Server 2022.09.10

파일질라(FileZilla)에서 서버 접속하기

파일질라(FileZilla)를 이용해서 원격 서버에 접속하고 파일을 관리하는 방법에 대한 정리 목차시작하기에 앞서…파일질라(FileZilla) 설치파일질라(FileZilla) 설정Troubleshooting시작하기에 앞서…아래는 파일질라 공식 웹사이트이다. 파일질라 클라이언트를 다운 받을 수 있다.FileZillaAdvertisement: Welcome to the homepage of FileZilla®, the free FTP solution. The FileZilla Client not only supports FTP, but also FTP over TLS (FTPS) and SFTP. It is open source software distributed free of charge under th..

Server 2022.09.03

서버에서 MySQL(MariaDB) 원격 연결 설정 - 추가

추가1. DB default charset 변경DB를 생성하면서 charset을 따로 설정하지 않았을 경우 기본적으로 latin1 으로 설정이 된다. 아래는 기본 언어를 utf8mb4 로 변경하기 위한 과정을 기록한 내용이다.일단 my.cnf 파일을 연다.$ sudo vi /etc/mysql/my.cnf ------------ # vi 편집화면 [client] default-character-sest = utf8mb4 [mysqld] character-set-client-handshake = FALSE chracter-set-server = utf8mb4 collation-server = utf8mb4_general_ci [mysqldump] default-character-set = utf8mb4 [m..

Server 2022.09.02

서버에서 MySQL(MariaDB) 원격 연결 설정

Description1. Server 자원 접속2. MySQL 설치 (+MariaDB)3. DB 권한 설정 (MySQL, MariaDB)4. 원격 접속 허용 설정4-1. 설정 파일 찾기4-2. 설정 파일 변경4-3. DB 재시작5. 새로운 유저 생성참고자료Description1. Server 자원 접속⚙mac OS 작업 환경 기준 서버 운영체제는 Ubuntu 기준macOS는 기본적으로 UNIX 기반의 운영체제 → 그렇기 때문에 OpenSSH Client를 기본으로 포함키 파일의 권한을 400으로 변환하여 가능 권한을 맞추고 아래와 같은 명령어를 통해서 서버에 접속# pem 파일 400 권한으로 변경 $ chmod 400 # 예: chmod 400 /Users/simon/key.pem # 접속 $ ssh ..

Server 2022.09.01