Commit 4f2c62b9 authored by daidekun's avatar daidekun

ui日志问题

parent 9d7fb0ab
......@@ -33,6 +33,15 @@ then
sed -i "s/SYSTEM_NAME/${SYSTEM_NAME}/" $default_conf_file
fi
echo "mkdir -p /var/log/nginx"
mkdir -p /var/log/nginx
echo "touch /var/log/nginx/error.log"
touch /var/log/nginx/error.log
echo "touch /var/log/nginx/access.log"
touch /var/log/nginx/access.log
echo "/usr/bin/openresty -g 'daemon off;'"
nohup /usr/bin/openresty -g 'daemon off;' &
......@@ -40,4 +49,4 @@ echo "node /home/qg-xterm/demo/app.js"
nohup node /home/qg-xterm/demo/app.js &
echo "frontail logs/*.log -d -n 1000"
frontail /usr/local/openresty/nginx/logs/*log -n 1000
\ No newline at end of file
frontail /var/log/nginx/*log -n 1000
\ No newline at end of file
......@@ -12,9 +12,9 @@ http {
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for '
'"$upstream_addr" "$upstream_status" "$upstream_response_time" "$request_time" "$http_cookie"';
access_log /usr/local/openresty/nginx/logs/access.log;
error_log /usr/local/openresty/nginx/logs/error.log;
error_log /var/log/nginx/error.log warn;
access_log /var/log/nginx/access.log;
server_names_hash_bucket_size 64;
sendfile on;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment