
서버에 https 설정하기 위해 이것저것 하라는게 많은데, 여러번 설치 해보면서 깔끔하게 필요한것만 정리해놨음. Nginx 를 통해 진행한다. // Nginx 설치 $ sudo apt-get install nginx /etc/nginx/nginx.conf 위 경로 파일을 통해 앞으로의 Nginx 설정을 진행함. (기억해두기) (TIP) 필자는 해당 /etc/nginx 경로로 그냥 vscode를 켜서 진행한다. vscode로 수정할 때 permission 에러가 뜨지 않게 'chown -R [사용자]:[그룹] [디렉토리명]' 을 미리 설정해두자 // certbot 설치 $ sudo apt install certbot $ sudo apt install python-certbot-nginx (혹은 python..
$ sudo apt-get update $ sudo apt-get install mysql-server // 방화벽 설정 $ sudo ufw allow mysql $ sudo systemctl start mysql $ sudo systemctl enable mysql 'mysql' 명령어가 아닌 '/usr/bin/mysql' 로 접속하면 접속이 가능하다 $ sudo /usr/bin/mysql -u root -p 패스워드 입력은 공백에 엔터 누르면 접속 된다. 이후 패스워드 설정은 mysql 상태에서 mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '바꿀비번'; https://nuggy875.tistory.com/..

Error: Expression #41 of SELECT list is not in GROUP BY clause and contains nonaggregated column '{___}->{___}.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 위와 같은 에러가 떴을 때, only_full_group_by 를 해제해줘야한다. 우선 mysql 접속하여 설정 되어있는지 확인해보자 mysql> select @@sql_mode; 위와 같이 ONLY_FULL_GROUP_BY 가 포함되어있다면, 이를 없애주자. SET GLOBAL sql_m..

Node (Express) 내의 라우터에서 사용자의 IP를 불러오는 방식은 다양함. 필자가 자주 사용하는 방법은 두 가지. 1. request 로 들어오는 header 사용 req.headers["x-real-ip"] 2. request-ip API 사용 const requestIp = require("request-ip") requestIp.getClientIp(req) 서버를 Nginx로 구축하였을 때, IP가 0.0.0.0 혹은 127.0.0.1 (localhost) 와 같이 제대로 안 불러와지는 현상이 있음. 해당 경우에는 nginx.conf 설정에서 IP 가 뜨도록 설정해줄 수 있음. /etc/nginx/nginx.conf 파일에서 (설정한 환경에 따라 /etc/nginx/sites-enable..
https 인증서 발급 및 수동 갱신 방법 https://nuggy875.tistory.com/119 Nginx로 https 적용하기 (let's encrypt 사용) - Ubuntu 18.04 LTS 에서 진행 - Ubuntu 20.04 에서 실행 시에도 문제 없었음. - 보유 DNS가 있어야 진행할 수 있음. greenlock 방식이 불안하다는 얘기가 많아서 리버스 프록시 방식의 Nginx를 사용하여 https 인. nuggy875.tistory.com let's encrypt로 받은 인증서는 90일에 한 번씩 연장을 해줘야 함. 수동으로 한 줄만 입력하면 되지만, 까먹을 위험성이 있으므로 Crontab을 이용해서 자동으로 갱신해주도록 해보자. Crontab은 우분투에 설치되어 있는, 특정 일시에 어..
터미널 열고 $ sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* $ cd /usr/local/lib $ sudo rm -rf node* $ cd /usr/local/include $ sudo rm -rf node* $ brew uninstall node $ sudo rm -rf /usr/local/bin/npm $ sudo rm -rf /usr/local/bin/node $ ls -las $ sudo rm -rf /usr/local/share/man/man1/node.1 $ sudo rm -rf /usr/local/lib/dtrace/node.d $ sudo rm -rf ~/.npm 말끔. 참..
Node 가 이미 깔려있다면, 제거 하고 진행하는 것이 꼬이지 않을 것이다.. Node.js 깔끔하게 제거 nuggy875.tistory.com/128 Node.js 깔끔하게 제거하기 (MacOS) 터미널 열고 $ sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* $ cd /usr/local/lib $ sudo rm -rf node* $ cd /usr/local/include $ sudo rm -rf node* $ brew un.. nuggy875.tistory.com 1. 설치 $ sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/..
- Total
- Today
- Yesterday
- Object Detection
- nvidia
- pytorch
- Neural Radiance Field
- Novel View Synthesis
- Macbook
- 우분투
- Deep Learning
- git
- 3Dvision
- CUDA
- Computer Vision
- nerf
- java
- error
- Machine Learning
- Android
- vscode
- ubuntu
- Python
- nginx
- MacOS
- SSH
- 2-stage Detector
- GPU
- numpy
- GaussianSplatting
- Docker
- Anaconda
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |