본문 바로가기

전체 글

(205)
[mysql/mariadb] database 인코딩 utf8로 설정하기 일단 DB에 접속해서 characterset 인코딩설정을 확인해보자. MariaDB [(none)]> status mysql Ver 15.1 Distrib 10.5.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 Connection id: 30220 Current database: Current user: nobody@localhost SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server: MariaDB Server version: 10.5.13-MariaDB-1:10.5.13+maria~focal mariadb.org binary distributio..
curl에서 PUT 명령어시 Content-Type header [application/x-www-form-urlencoded] is not supported 에러 해결 리눅스에서 curl 명령어를 통해 PUT 요청을 날리는데 아래와 같이 에러메시지가 떴다. $ curl -u 유저명:'패스워드' -XPUT "IP주소" -d ' { "data" : { "key" : "value" } }' {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} 406 에러가 떴는데, Content-type 헤더가 명시되지 않아서 생긴 문제이다. 아래와 같이 헤더 타입을 명시해주니 정상동작하였다. -H 'Content-Type: application/json' $ curl -u 유저명:'패스워드' -H 'Content-Type: application/json' -XPUT "..
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. 문제 해결 방법 bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? 파이썬에서 beautifulsoup4를 제대로 설치했다고 생각했는데, 위와 같은 에러가 뜰 수 있다. 이떄는 아래와 같이 lxml 패키지도 같이 설치해주면 된다. # pip install lxml Collecting lxml Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/fd/9c/d0bbb2ac23561738629cf6a04c660f7217..
[kubernetes] cronjob 수행 중지 kubectl 명령어 kubectl patch cronjob -p '{"spec":{"suspend":false}}' -n 쿠버네티스에서 설정한 크론잡을 수행 중지 하기 위해서는 .spec.suspend 값을 true로 바꾸어주면 된다. 해당 명령을 수행하는 kubectl 명령은 아래와 같다. kubectl patch cronjob -p '{"spec":{"suspend":true}}' -n 반대로 cronjob을 다시 수행하는 명령은 suspend 값을 false로 바꾸어주면 된다.
워드프레스 도커 설치 방법을 상세하게 설명한 글 https://nearhome.tistory.com/96 도커를 이용한 워드프레스 웹 서비스 구축 들어가며 이미지설치 도커볼륨생성 mysql 컨테이너 생성 mysql 컨테이너 생성 및 확인 wordpress 컨테이너 생성 :8080 들어가서 확인 끝마치며 들어가며 실습에 필요한 가상환경을 구축하기 위해 vagran nearhome.tistory.com 포스팅을 보면 기본적으로 docker가 설치된 환경에서 어떻게 워드프레스를 띄우는지 상세하게 설명되어 있다. 해당 포스팅만 쭉 따라하면 30분도 안되는 시간에 wordpress를 띄울 수 있다.