본문 바로가기

ETC

(13)
VS CODE 기본 터미널 변경 방법 (powershell → git bash) VSCODE 의 기본 터미널은 powershell이다. git을 사용해 버전관리를 하는 중이라 git bash로 기본터미널을 변경했는데 갑자기 다음과 같은 에러 발생 뿌앵. 당황하지 않고 구글링을 시작한다. 🙄 This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in `#terminal.integrated.profiles.windows#` and setting its profile name as the default in `#terminal.integrated.defaultProfile.windows#`. This will currently take priori..
Github SSH 등록 및 설정 / authentication 방법 변경 서버와 로컬을 git에 연결해서 작업중인데 서버에서 git 아이디, 비밀번호를 치니까 갑자기 나온 에러 remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access 'https://github.com/1234567890.git/': The requested URL returned error..
nginx / nginx 환경설정 및 도메인(domain) 변경 방법 도메인 설정을 변경하는 방법을 xshell에서 했던 걸 기록. laravel로 만든 홈페이지를 django로 conversion하면서 도메인을 옮기게되어 이를 수정했다. *사용할 폴더 cd /etc/nginx/ ** nginx.conf 파일에서 include 해서 conf.d 와 sites-enabled를 사용함 1. conf.d 폴더로 이동 cd /etc/nginx/conf.d/ (라라벨 conf 파일 있는 폴더) 2. 수정할 conf 파일로 들어가기 vi [파일명.conf] 바꾸려는 희망하는 url을 제외한 나머지만 server_name에 두기 3. url 추가할 conf 파일로 이동 cd /etc/nginx/sites-available/ (python conf 파일 있는 폴더) vi [파일명] 4...
git / server - github - local 연결방법 A server에 있는 소스를 B server로 옮겨서 local과 git으로 연결해서 작업하고자 함 A server 1. 파일 백업(tar 압축) tar -zcf [저장할파일명.tar.gz] [압축할폴더명] A server -> B server 1-1 압축된 파일 백업 원하는 서버에 이동 후 압축파일 업로드 (filezila 사용) B server 2. 파일 백업 풀기 tar -zxvf [파일명.tar.gz] 2-1. 해제 후 해당 폴더 들어가서 .git 파일 삭제 (A server git 정보가 들어있기 때문) 3. 새로운 github 생성 (private) 3.1 private의 경우 collabolator 초대 및 초대 accept 필요 4. 서버에서 명령어 작성 $ git init $ git a..
nginx / 기본 라우팅 설정 방법 (conf 파일 경로 지정 방법) nginx 웹서버 라우팅 설정 내가 만든 프로젝트에 도메인을 붙이고, 포트를 지정하고.. 그 도메인으로 들어왔을때 해당서버에 있는 프로젝트 중 어떤게 root가 되는지 지정하는 방법 1. 서버에서 conf.d 폴더까지 이동 cd etc/nginx/conf.d 이동 후, 해당 conf 파일의 이름은 상관이 없다. 프로젝트로 구분짓기 위함 그 안에 listen, server_name, root가 중요. ex) -rw-r--r-- 1 root root 1212 Dec 14 2020 콘프명.conf -rw-r--r-- 1 root root 1220 Nov 4 2020 콘프명2.conf -rw-r--r-- 1 root root 1225 Feb 19 10:22 콘프명3.conf -rw-r--r-- 1 root ro..
DB 백업 및 복원 파일 백업([백업된 DB]) 후 복원할 서버에 올리기 0. 백업방법 (match 데이터테이블을 match2 라는 이름으로 저장) : 서버내 아무 위치에서나 하면, 명령어 입력한 위치에 sql 백업파일 생성됨 [데이터 베이스 내 테이블만 백업] mysqldump -u root -p match > match2.sql [데이터 베이스 내 table, procedure, function, trigger 모두 백업] mysqldump -u root -p --routines --triggers --events match > match2.sql 1. 복원방법 DB에 복원할 DB 만들기([복원할 DB]) 해당 서버 들어 간 후 아무 폴더에서나 해당 명령어 치기 1-1 # mysql -u [사용자 계정] -p [패스워드..
nginx / CentOS systemctl enable nginx : nginx 자동시작 systemctl enable php-fpm : php 자동시작
데이터 유형 별 시각화 기법 what would you like to show? 데이터 유형 별 시각화 기법 what would you like to show?