内容
トラブル以前の状態に戻す。根本的に解決したわけではない / 根本的な対応を行い解決
トラブル以前の状態に戻す。根本的に解決したわけではない
# mkdir /run/go/
# ls -la /run/
合計 40
drwxr-xr-x 31 root root 920 7月 26 21:24 .
dr-xr-xr-x. 17 root root 4096 10月 31 2016 ..
drwxr-xr-x 2 root root 60 7月 26 19:59 NetworkManager
drwxr-xr-x 2 root root 100 7月 26 19:59 abrt
-rw-r--r-- 1 root root 4 7月 26 19:59 atd.pid
-rw-r--r-- 1 root root 4 7月 26 19:59 auditd.pid
-rw-r--r-- 1 root root 4 7月 26 19:59 chronyd.pid
drwxr-xr-x 2 root root 40 7月 26 19:59 console
---------- 1 root root 0 7月 26 19:59 cron.reboot
-rw-r--r-- 1 root root 4 7月 26 19:59 crond.pid
drwxr-xr-x 2 root root 60 7月 26 19:59 dbus
prw------- 1 root root 0 7月 26 19:59 dmeventd-client
prw------- 1 root root 0 7月 26 19:59 dmeventd-server
drwxr-xr-x 2 root root 80 7月 26 19:59 fail2ban
drwxr-xr-x 2 root root 40 7月 26 19:59 faillock
drwxr-xr-x 2 root root 40 7月 26 21:24 go
drwx--x--- 3 root apache 60 7月 26 19:59 httpd
drwxr-xr-x 4 root root 100 7月 26 19:59 initramfs
drwxr-xr-x 6 root root 120 7月 26 19:59 lock
drwxr-xr-x 3 root root 60 7月 26 19:59 log
drwxrwxr-x 3 root libstoragemgmt 60 7月 26 19:59 lsm
drwx------ 2 root root 80 7月 26 19:59 lvm
-rw-r--r-- 1 root root 4 7月 26 19:59 lvmetad.pid
drwx--x--- 2 root root 40 7月 26 19:59 mdadm
drwxr-xr-x 2 root root 60 7月 26 19:59 mount
drwxr-xr-x 2 mysql mysql 60 7月 26 20:00 mysqld
drwxrwxr-x 2 root root 40 7月 26 19:59 netreport
-rw-r--r-- 1 root root 6 7月 26 21:23 nginx.pid
drwxr-xr-x 2 root root 60 7月 26 19:59 php-fpm
srw-rw---- 1 nginx nginx 0 7月 26 19:59 php-fpm.sock
drwxr-xr-x 2 root root 40 7月 26 19:59 plymouth
drwxr-xr-x 2 root root 40 7月 26 19:59 ppp
drwx------ 2 rpc rpc 40 7月 26 19:59 rpcbind
srw-rw-rw- 1 root root 0 7月 26 19:59 rpcbind.sock
drwxr-xr-x 2 root root 40 7月 26 19:59 sepermit
drwxr-xr-x 2 root root 40 7月 26 19:59 setrans
-rw-r--r-- 1 root root 5 7月 26 19:59 sshd.pid
drwx------ 2 root root 40 7月 26 19:59 svnserve
-rw------- 1 root root 4 7月 26 19:59 syslogd.pid
drwxr-xr-x 17 root root 420 7月 26 21:18 systemd
drwxr-xr-x 2 root root 60 7月 26 19:59 tmpfiles.d
drwxr-xr-x 2 root root 60 7月 26 19:59 tuned
drwxr-xr-x 7 root root 160 7月 26 19:59 udev
drwxr-xr-x 3 root root 60 7月 26 21:20 user
-rw-rw-r-- 1 root utmp 2688 7月 26 21:20 utmp
-rw------- 1 root root 0 7月 26 19:59 xtables.lock
# chmod 777 /run/go/
# ls -la /run/
合計 40
drwxr-xr-x 31 root root 920 7月 26 21:24 .
dr-xr-xr-x. 17 root root 4096 10月 31 2016 ..
drwxr-xr-x 2 root root 60 7月 26 19:59 NetworkManager
drwxr-xr-x 2 root root 100 7月 26 19:59 abrt
-rw-r--r-- 1 root root 4 7月 26 19:59 atd.pid
-rw-r--r-- 1 root root 4 7月 26 19:59 auditd.pid
-rw-r--r-- 1 root root 4 7月 26 19:59 chronyd.pid
drwxr-xr-x 2 root root 40 7月 26 19:59 console
---------- 1 root root 0 7月 26 19:59 cron.reboot
-rw-r--r-- 1 root root 4 7月 26 19:59 crond.pid
drwxr-xr-x 2 root root 60 7月 26 19:59 dbus
prw------- 1 root root 0 7月 26 19:59 dmeventd-client
prw------- 1 root root 0 7月 26 19:59 dmeventd-server
drwxr-xr-x 2 root root 80 7月 26 19:59 fail2ban
drwxr-xr-x 2 root root 40 7月 26 19:59 faillock
drwxrwxrwx 2 root root 40 7月 26 21:24 go
drwx--x--- 3 root apache 60 7月 26 19:59 httpd
drwxr-xr-x 4 root root 100 7月 26 19:59 initramfs
drwxr-xr-x 6 root root 120 7月 26 19:59 lock
drwxr-xr-x 3 root root 60 7月 26 19:59 log
drwxrwxr-x 3 root libstoragemgmt 60 7月 26 19:59 lsm
drwx------ 2 root root 80 7月 26 19:59 lvm
-rw-r--r-- 1 root root 4 7月 26 19:59 lvmetad.pid
drwx--x--- 2 root root 40 7月 26 19:59 mdadm
drwxr-xr-x 2 root root 60 7月 26 19:59 mount
drwxr-xr-x 2 mysql mysql 60 7月 26 20:00 mysqld
drwxrwxr-x 2 root root 40 7月 26 19:59 netreport
-rw-r--r-- 1 root root 6 7月 26 21:23 nginx.pid
drwxr-xr-x 2 root root 60 7月 26 19:59 php-fpm
srw-rw---- 1 nginx nginx 0 7月 26 19:59 php-fpm.sock
drwxr-xr-x 2 root root 40 7月 26 19:59 plymouth
drwxr-xr-x 2 root root 40 7月 26 19:59 ppp
drwx------ 2 rpc rpc 40 7月 26 19:59 rpcbind
srw-rw-rw- 1 root root 0 7月 26 19:59 rpcbind.sock
drwxr-xr-x 2 root root 40 7月 26 19:59 sepermit
drwxr-xr-x 2 root root 40 7月 26 19:59 setrans
-rw-r--r-- 1 root root 5 7月 26 19:59 sshd.pid
drwx------ 2 root root 40 7月 26 19:59 svnserve
-rw------- 1 root root 4 7月 26 19:59 syslogd.pid
drwxr-xr-x 17 root root 420 7月 26 21:18 systemd
drwxr-xr-x 2 root root 60 7月 26 19:59 tmpfiles.d
drwxr-xr-x 2 root root 60 7月 26 19:59 tuned
drwxr-xr-x 7 root root 160 7月 26 19:59 udev
drwxr-xr-x 3 root root 60 7月 26 21:20 user
-rw-rw-r-- 1 root utmp 2688 7月 26 21:20 utmp
-rw------- 1 root root 0 7月 26 19:59 xtables.lock
# mkdir /run/go/app/
# chmod 777 /run/go/app/
# ls -la /run/go/
合計 0
drwxrwxrwx 3 root root 60 7月 26 21:30 .
drwxr-xr-x 31 root root 920 7月 26 21:24 ..
drwxrwxrwx 2 root root 40 7月 26 21:30 app
# systemctl restart goweb.service
/run/go/app/
┣a1.sock
┣a2.sock
┗a3.sock
┣a1.sock
┣a2.sock
┗a3.sock
根本的な対応を行い解決
CentOS7再起動時に、/run 直下に作成したディレクトリを削除しないようにする