일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- Portfolio
- 컴퓨터과학총론
- javascript
- java
- techEmpower
- 해석
- unity
- server
- ubuntu
- caddy
- it
- 프래그먼트
- 자바
- mariadb
- centOS7
- 번역
- php
- 개발자
- H2O
- 안드로이드
- MySQL
- C lanuage
- error
- 개발
- 구글
- C
- kakao
- android
- NGINX
- 한글
- Today
- Total
목록Server (73)
개발모음집
nginx 이미지 생성하기 1. dockerfile이 있을 폴더 생성 # mkdir /dockerfiles # cd /dockerfiles 2. DockerFile 생성 #nano DockerFile FROM ubuntu:16.04 RUN apt-get update RUN apt-get install locales # Set the locale RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 # Install dependencies ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get install -qq wget unzip..
# apt-get install openssh-server# apt-get install ssh# nano /etc/ssh/sshd_config => PermitRootLogin yes 변경, #PubkeyAuthentication yes주석# passwd root# service ssh restart 참고 ssh설치 : http://programmingskills.net/archives/315
1. docker 우분투 이미지 실행하기 docker run -i -t -p 80:80 -p 2222:22 --privileged --name vuefestivalkorea ubuntu:16.04 /bin/bash 2. docker commit -m "initial commit" -a "void" 336628b55de4 voiddeveloper91/vuefestivalkorea 3. docker push voiddeveloper91/vuefestivalkorea docker run -i -t -p 80:80 -p 2222:22 -p 8080:8080 -p 7100-7120:7100-7120 -p 3306:3306 --privileged --name festivalkoreaserver ubuntu:late..
보호되어 있는 글입니다.
형식 ) docker cp /경로/파일명 containerId:/[file_path]예) docker cp /Users/void/Downloads/sample.mp4 7be91e503187:/var/www/html출처 : hahwul
보호되어 있는 글입니다.
보호되어 있는 글입니다.
nginx에서 403, 404, 50x error발생시 내가 만든 php파일로 이동하게 하기 1. 403.php 404.php 50x.php 파일 생성2. vim /etc/nginx/conf.d/default.conf3. 아래 사진과 같이 코드추가 error_page 403 = /403.php; error_page 404 = /404.php; error_page 500 502 503 504 = /50x.php; 4. systemctl restart nginx ** 참고. 나는 50x.php에 세션을 없애는 "session_destroy()" 코드를 썼다. 500 번대 에러가 발생했을 때만 50x.php를 호출할 줄 알았으나 홈페이지가 정상작동 할때도 이 코드때문에 세션이 없어지는것을 발견하였다. 그래서 ..