워드프레스와 mariaDB를 설치하는 docker-compose.yml 기본 파일이다. 위와 같이 docker-compose.yml 파일을 만들어주고다음과 같이 실행시켜주면 설치가 된다.설치후 접속해서 잘 되는지 확인한다.
ⓒ 2023. FUNCOM all rights reserved.
워드프레스와 mariaDB를 설치하는 docker-compose.yml 기본 파일이다. 위와 같이 docker-compose.yml 파일을 만들어주고다음과 같이 실행시켜주면 설치가 된다.설치후 접속해서 잘 되는지 확인한다.
도커에서 다운받은 nginx 이미지를 실행하고 index.html 파일을 만들어 띄워보려면다음과 같은 순서데로 참고해서 한다.이렇게 해보면 도커가 잘 이해가지 않을 때 좀더 이해할 수 있다.
도커의 실행중인 컨테이너를 완전히 종료하려면 exit를 입력하거나 Ctrl 키를 누른상태에서 d를 누른다. 도커의 실행중인 컨테이너를 실행시킨채 shell로 빠져나오려면ctrl 키를 누르고 p를 둘다 누른상태에 q를 계속 눌러주면 컨테이너는 실행 계속 실행중이고 …
CentOS7에서 라우트를 보는 ip addr을 실행하면 다음과 같이 안될 때가 있다.도커환경에서도 안될 때가 있다. 이런경우 라우트 패키지를 yum으로 설치해주고 나면 바로 한방에 잘된다.
CentOS7에서 설치에 따라 net-tools가 설치가 되지 않는 경우가 많으며별도로 설치해줘야할때가 있다.ip주소를 확인하는 ifconfig가 안될 때는 다음과 같이 net-tools를 설치해주고다시 해보면 바로 잘 된다.
도커에서 컨테이너를 만들고 삭제하는 방법들은 다음을 참고해서 하면된다.이미지 또한 다음의 방법으로 자유롭게 설치하고 삭제할 수 있다.
CentOS7에 도커를 설치할 때는 다음과 같은 순서로 설치하면 금방 설치를 할 수 있다.사용방법과 다양한 팁은 계속 등록할 예정이다. 다음은 도커에 CentOS를 설치하고 설치한 CentOS에 접속하는 방법이므로 참고한다. 기본적으로 현재 CentOS8 …
502 Bad Gatewaynginx/1.20.2 워드프레스 기반 서버 운영중인데PHP 8.0으로 업데이트 하니 완전 난리 천국!! 7.4로 다시 돌아가려고 하니 이런저런 문제가 많다.. 결국 모두 지우고 7.4설치 완료하지 위와같은502 Bad Gateway 에러가 뜨고 …
php.ini 위치는 참 쉬운데 은근히 기억이 안날 때가 있다.위와같은 위치이며 vi를 이용하여 쉽게 편집할 수 있다. 대부분 이 위치지만 서버에 따라 간혹 다른 경우에도 있는 것을 보았으므로 참고하기 바란다.
웹서버를 세팅하면서 nginx 권한때문에 오류가 나는경우가 다양하게 참 많이 난다. 항상 위 코드로 권한을 잘 설정해줘야 잘된다. 워드프레스에서 파일을 지우거나 플러그인을 추가 삭제할때 등 ftp 문제 있을 경우에도 참고해야한다.