session.save_path
session.save_handler = memcache
session.save_path = "tcp://localhost:11211"
session.save_path = /tmp
(видимо из-за того , что nginx слушает порт 8080. Для решения этого вопроса я добавляю такой конфиг
:8080/phpmyadmin/index.php?token=1ab6355650f59ed4f2e66c3af79aee78
location /phpmyadmin {
root /usr/share/;
index index.php;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php5-fpm-def.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_param SERVER_PORT 80;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /srv/www/;
}
}
.
user www-data;
pid /run/nginx.pid;
worker_processes auto;
error_log /var/log/nginx/error.log crit;
timer_resolution 100ms;
worker_rlimit_nofile 100000;
events {
worker_connections 20480;
use epoll;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
reset_timedout_connection on;
keepalive_timeout 120;
ssl_session_cache shared:SSL:20m;
large_client_header_buffers 8 8k;
server_names_hash_bucket_size 128;
gzip off;
gzip_proxied any;
gzip_types text/plain application/atom+xml text/xml application/xml application/javascript application/x-javascript text/javascript text/css text/json application/json;
gzip_min_length 1024;
gzip_comp_level 9;
include vhost-default.inc.conf;
include vhosts.d/*.conf;
}
2015/07/03 03:17:26 [notice] 9491#0: signal process started
2015/07/03 03:17:50 [notice] 9526#0: signal process started
2015/07/03 03:17:59 [alert] 9261#0: unlink() "/run/nginx.pid" failed (2: No such file or directory)
2015/07/03 03:18:33 [notice] 9663#0: signal process started
2015/07/03 03:18:33 [error] 9663#0: open() "/run/nginx.pid" failed (2: No such file or directory)
2015/07/03 03:18:55 [notice] 9714#0: signal process started
2015/07/03 03:20:45 [notice] 9855#0: signal process started
2015/07/03 04:16:20 [notice] 14378#0: signal process started
-- Unit systemd-readahead-done.timer has finished starting up.
--
-- The start-up result is done.
Jul 03 04:28:09 vsnginx systemd[1]: Starting Mail Transport Agent.
-- Subject: Unit mail-transport-agent.target has begun with start-up
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mail-transport-agent.target has begun starting up.
Jul 03 04:28:09 vsnginx systemd[1]: Reached target Mail Transport Agent.
-- Subject: Unit mail-transport-agent.target has finished start-up
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mail-transport-agent.target has finished starting up.
--
-- The start-up result is done.
Jul 03 04:28:09 vsnginx postfix/master[396]: daemon started -- version 2.11.3, configuration /etc/postfix
Jul 03 04:28:09 vsnginx systemd[1]: Started Tell that Container is started.
-- Subject: Unit vzfifo.service has finished start-up
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vzfifo.service has finished starting up.
--
-- The start-up result is done.
Jul 03 04:28:09 vsnginx systemd[1]: Started Update UTMP about System Runlevel Changes.
-- Subject: Unit systemd-update-utmp-runlevel.service has finished start-up
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-update-utmp-runlevel.service has finished starting up.
--
-- The start-up result is done.
Jul 03 04:28:09 vsnginx agetty[286]: /dev/console: cannot get controlling tty: Operation not permitted
Jul 03 04:28:09 vsnginx agetty[286]: /dev/console: cannot set process group: Inappropriate ioctl for device
Jul 03 04:28:09 vsnginx systemd[1]: Startup finished in 1.096s.
-- Subject: System start-up is now complete
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- All system services necessary queued for starting at boot have been
-- successfully started. Note that this does not mean that the machine is
-- now idle as services might still be busy with completing start-up.
--
-- Kernel start-up required KERNEL_USEC microseconds.
--
-- Initial RAM disk start-up required INITRD_USEC microseconds.
--
-- Userspace start-up required 1096534 microseconds.
50 05 * * * root sleep $(($RANDOM % 10800)) && mount -a && /srv/bin/backup.sh >> /var/log/backup.log 2>&1
sleep $(($RANDOM % 10800))
и в syslog писал /USR/SBIN/CRON[588724]: (root) CMD (sleep $(($RANDOM )
и сообщение об ошибке отправки сообщения с ошибкой.
Кроме того, файловая система ext4 по умолчанию резервирует часть места для системных данных. Поскольку на /home, и уж тем более на разделе с пользовательскими файлами, никаких системных данных никогда не будет, то лучше отменить это резервирование, дабы освободить пропадающее зря место. Для это пригодятся командыsudo tune2fs -r 0 /dev/local/home sudo tune2fs -r 0 /dev/local/data