- Nginx
- 아래의 모든 case 는 나의 Errors 이다.
so, 해결방법도 나의 경우이겠지? 잘못된 위치에 config 파일을 생성해 놓았기 때문에 발생했다.
"/etc/nginx/sites-enabled/" <-- 이 경로에 '/etc/nginx/sites-enabled/' 에 있는 설정파일의 soft link 를 생성해 놓았더니 발생했다.
soft link file 을 delete 하니 사라졌다.2016/01/28 22:06:52 [emerg] 19812#19812: "location" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2016/01/28 22:06:58 [emerg] 19859#19859: "location" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2016/01/28 22:24:05 [emerg] 20607#20607: "location" directive is not allowed here in /etc/nginx/conf.d/default.conf:1- 다음 Error 는 configuration file 에 ipV6 설정을 해 놓아서 발생함
# 파일 경로 : /etc/nginx/sites-available/default
위의 설정파일에 빨간 부분을 주석을 풀고 실행시켰더니 아래와 같은 Error 가 발생함.
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80 default_server;
#listen [::]:80 default_server; # 내가 적은거임.20150128
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# 이하 생략
사실 저걸 comment 처리하는게 해결방법은 아니고 저 ipV6 방식을 내가 실제로 사용해야할 때 저렇게 세팅을 했는데 Error 가 발생한다면
검색해보면 해결책이 많이 나오더라.
그 때 가서 적용해서 해결해보고 결과를 추가로 여기에 작성하자.
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to [::]:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to [::]:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to [::]:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to [::]:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:35:32 [emerg] 21300#21300: bind() to [::]:80 failed (98: Address already in use)
다음 Error 는 이유를 정확히 모르겠음.
2016/01/28 22:25:06 [emerg] 20668#20668: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:25:06 [emerg] 20668#20668: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:25:06 [emerg] 20668#20668: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:25:06 [emerg] 20668#20668: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:25:06 [emerg] 20668#20668: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/01/28 22:25:06 [emerg] 20668#20668: still could not bind()
uWSGI 실행시 --http ;[port number] 설정을 해주지 않아서 난건지...
아니면 "/etc/nginx/sites-available/[설정파일이름]" 폴더의 [설정파일] 의 내용을 잘못 작성한 건지 모르겠다.
일단, 둘 중 하나다.
'Linux > Ubuntu 14.04 LTS' 카테고리의 다른 글
Linux | Ubuntu 14.04 LTS | Utils | atom install, uninstall, upgrade (0) | 2016.02.02 |
---|---|
Linux | Ubuntu 14.04 LTS | mount (0) | 2016.02.01 |
Linux | Ubuntu 14.04 LTS | Server | Nginx + WSGI + Celery + Python Application 설치 및 실행 방법 (0) | 2016.01.29 |
Linux | Ubuntu 14.04 LTS | Redis 설치, 세팅, 실행 (0) | 2016.01.27 |
Linux | Ubuntu 14.04 | install Evernote on playonlinux (0) | 2016.01.14 |