Skip to content

Instantly share code, notes, and snippets.

@excavador
Created July 11, 2017 19:46
Show Gist options
  • Save excavador/4f496a02fd8e6387186e0791f2da6092 to your computer and use it in GitHub Desktop.
Save excavador/4f496a02fd8e6387186e0791f2da6092 to your computer and use it in GitHub Desktop.
[jenkins@ci-slave-1:Ireland oleg]$ grep -A 1 -B 1 error_log /home/jenkins/backend-ci/bin/nginx.conf
pid /home/jenkins/backend-ci/bin/nginx.pid;
error_log /dev/stderr error;
--
access_log /dev/stderr combined_plus;
error_log /dev/stderr error;
[jenkins@ci-slave-1:Ireland oleg]$ /sbin/nginx -c /home/jenkins/backend-ci/bin/nginx.conf
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2017/07/11 19:45:06 [emerg] 24582#24582: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
[jenkins@ci-slave-1:Ireland oleg]$ /sbin/nginx -c /home/jenkins/backend-ci/bin/nginx.conf -p /home/jenkins/backend-ci/bin
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2017/07/11 19:45:09 [emerg] 24583#24583: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
[jenkins@ci-slave-1:Ireland oleg]$ /sbin/nginx -v
nginx version: nginx/1.12.1
[jenkins@ci-slave-1:Ireland oleg]$ cat /etc/*release
CentOS Linux release 7.3.1611 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.3.1611 (Core)
CentOS Linux release 7.3.1611 (Core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment