Эх сурвалжийг харах

python: Use /var/tmp instead of /tmp for unix socket.

INADA Naoki 8 жил өмнө
parent
commit
e332050c3b

+ 1 - 1
frameworks/Python/bottle/nginx.conf

@@ -41,7 +41,7 @@ http {
         server_name  localhost;
 
         location / {
-            uwsgi_pass unix:/tmp/uwsgi.sock;
+            uwsgi_pass unix:/var/tmp/uwsgi.sock;
             include /usr/local/nginx/conf/uwsgi_params;
         }
     }

+ 2 - 2
frameworks/Python/bottle/uwsgi.ini

@@ -6,7 +6,7 @@ listen = 16384
 ; for performance
 disable-logging
 ; use UNIX sockets instead of TCP loopback for performance
-socket = /tmp/uwsgi.sock
+socket = /var/tmp/uwsgi.sock
 ; allow nginx to access the UNIX socket
 chmod-socket = 666
 ; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
@@ -16,4 +16,4 @@ chmod-socket = 666
 ; disabling this caused bottle to get ~13% faster.
 ;thunder-lock
 ; used by uwsgi_stop.ini
-pidfile = /tmp/uwsgi.pid
+pidfile = /var/tmp/uwsgi.pid

+ 1 - 1
frameworks/Python/flask/nginx.conf

@@ -41,7 +41,7 @@ http {
         server_name  localhost;
 
         location / {
-            uwsgi_pass unix:/tmp/uwsgi.sock;
+            uwsgi_pass unix:/var/tmp/uwsgi.sock;
             include /usr/local/nginx/conf/uwsgi_params;
         }
     }

+ 2 - 2
frameworks/Python/flask/uwsgi.ini

@@ -6,7 +6,7 @@ listen = 16384
 ; for performance
 disable-logging
 ; use UNIX sockets instead of TCP loopback for performance
-socket = /tmp/uwsgi.sock
+socket = /var/tmp/uwsgi.sock
 ; allow nginx to access the UNIX socket
 chmod-socket = 666
 ; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
@@ -16,4 +16,4 @@ chmod-socket = 666
 ; disabling this caused bottle to get ~13% faster.
 ;thunder-lock
 ; used by uwsgi_stop.ini
-pidfile = /tmp/uwsgi.pid
+pidfile = /var/tmp/uwsgi.pid

+ 1 - 1
frameworks/Python/uwsgi/nginx.conf

@@ -41,7 +41,7 @@ http {
         server_name  localhost;
 
         location / {
-            uwsgi_pass unix:/tmp/uwsgi.sock;
+            uwsgi_pass unix:/var/tmp/uwsgi.sock;
             include /usr/local/nginx/conf/uwsgi_params;
         }
     }

+ 2 - 2
frameworks/Python/uwsgi/uwsgi.ini

@@ -6,7 +6,7 @@ listen = 16384
 ; for performance
 disable-logging
 ; use UNIX sockets instead of TCP loopback for performance
-socket = /tmp/uwsgi.sock
+socket = /var/tmp/uwsgi.sock
 ; allow nginx to access the UNIX socket
 chmod-socket = 666
 ; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
@@ -16,4 +16,4 @@ chmod-socket = 666
 ; disabling this caused bottle to get ~13% faster.
 ;thunder-lock
 ; used by uwsgi_stop.ini
-pidfile = /tmp/uwsgi.pid
+pidfile = /var/tmp/uwsgi.pid