귀차니즘의 길(177)
-
[React] Invalid host header 오류
yarn start 하는데 어제 되던게 갑자기 오늘 안돼..? :3000포트 붙은 개발 서버에 갑자기 Invalid Host header 가 뜨는군... 리액트가 설치된 모듈 디렉터리 들어가서 /node_modules/react-scripts/config/webpackDevServer.config.js 파일 열어서 (안건드렸으면 아래와 같을 것이다..) [disableHostCheck] 검색 // @remove-on-eject-begin /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directo..
2021.04.01 -
[Oracle Cloud Server]오라클 클라우드 서버 외부접속
오라클 클라우드 서버 생성은 하고 왔니? https://babysunmoon.tistory.com/entry/Oracle-Cloud-Server%EC%98%A4%EB%9D%BC%ED%81%B4-%ED%81%B4%EB%9D%BC%EC%9A%B0%EB%93%9C-%EC%84%9C%EB%B2%84-%EC%83%9D%EC%84%B1 [Oracle Cloud Server]오라클 클라우드 서버 생성 오라클 클라우드 생성 준비물 생성한 계정, puttygen(ssh key의 이유로), putty.exe(접속해야지?) cloud.oracle.com Oracle Cloud Infrastructure cloud.oracle.com 접속 계정생성. 가입은 해외결제가 되는 카드.. babysunmoon.tistory.com ..
2021.02.16 -
[Oracle Cloud Server]오라클 클라우드 서버 생성
오라클 클라우드 생성 준비물 생성한 계정, puttygen(ssh key의 이유로), putty.exe(접속해야지?) cloud.oracle.com Oracle Cloud Infrastructure cloud.oracle.com 접속 계정생성. 가입은 해외결제가 되는 카드 정보를 입력하는게 있으며, 결제가 1달러 정도 됬다가 바로 취소된다. 나머지는 입력하라는 정보 입력하고 메일인증, 휴대폰 인증이 있다. (가입 도중 인증 문자가 안오는 경우가 있다. 이건.. 다음날 하니까 잘 됬다...) 가입 후 로그인을 한 뒤에 cloud.oracle.com Oracle Cloud Infrastructure cloud.oracle.com 로 접속이 잘 되었다면 한글을 사랑해보자. 인스턴스 생성 클릭 인스턴스 이름 이..
2021.02.05 -
[MYSQL] timeout 설정
MYSQL Timeout interactive_timeout - 콘솔에서 mysqld와 Client의 connection 후 다음요청을 기다리는 시간 wait_timeout - 플러그인, API 등을 이용해 (PHP, JDBC) connection 후 다음요청을 기다리는 시간 Global 설정 확인 mysql> show global variables like '%timeout'; Session 설정 확인 mysql> show variables like '%timeout'; 변경 mysql> set interactive_timeout=300; mysql> set global interactive_timeout=300; mysql> set wait_timeout=300; mysql> set global wa..
2021.02.01 -
[php-fpm] php-fpm 재시작
따로 yum이나 컴파일 설치가 아닌 php 소스컴파일 설치 시 php-fpm 옵션으로 설치를 했다면 service에도 안올라가고 뭐..많이 없다? 그럴때... 소스컴파일 했던 php 디렉터리에 /sapi/fpm/ 경로로 가서 cd /usr/local/src/[php디렉터리]/sapi/fpm/ cp init.d.php-fpm.in /etc/init.d/php-fpm 복사 후 vim /etc/init.d/php-fpm 열어서 BIN - 실행파일 위치 CONF - 설정파일위치 PID - 설정파일에서 적은 .pid위치 를 설정 해준다. 물론 그 전에 php-fpm 설정을 해야겠지? php_fpm_BIN=/usr/local/php/sbin/php-fpm php_fpm_CONF=/var/local/php/etc/p..
2020.11.24 -
return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object
re.sub 사용시 에러 어쩌구 저쩌구 return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object 나온다... 치환을 하고 싶어서 사용한 re.sub()가 구글링에선 많이 보이는데 오류가 난다? tag = re.sub('', '', tag) (태그를 제거 하고 싶었다) 말고 tag = re.sub('', '', '{}'.format(tag)) 잘 알고 있는 format을 써보자..
2020.07.01