按照如下命令修改
ln /var/run/supervisor/supervisor.sock /var/tmp/
sudo chmod 777 /var/tmp/supervisor.sock
supervisorctl
supervisorctl supervisord
[baiyun@hadoop102 ~]$ supervisorctl
unix:///var/tmp/supervisor.sock no such file
supervisor>
[baiyun@hadoop102 ~]$ cd /var/tmp/supervisor.sock
-bash: cd: /var/tmp/supervisor.sock: 没有那个文件或目录
[baiyun@hadoop102 ~]$ ll /var/tmp/supervisor.sock
ls: 无法访问/var/tmp/supervisor.sock: 没有那个文件或目录
[baiyun@hadoop102 ~]$ ls /var/tmp/supervisor.sock
ls: 无法访问/var/tmp/supervisor.sock: 没有那个文件或目录
[baiyun@hadoop102 ~]$ ls /var/tmp/
[baiyun@hadoop102 ~]$ ll /var/tmp/
总用量 0
[baiyun@hadoop102 ~]$ ll /var/tmp/^C
[baiyun@hadoop102 ~]$ sudo ll^C
[baiyun@hadoop102 ~]$ ll /var/run/supervisor
supervisor/ supervisord.pid
[baiyun@hadoop102 ~]$ ll /var/run/supervisor/supervisor.sock ^C
[baiyun@hadoop102 ~]$ ln /var/run/supervisor/supervisor.sock /var/tmp/
[baiyun@hadoop102 ~]$ ll /var/tmp/
总用量 0
srwx------. 2 root root 0 11月 5 11:49 supervisor.sock
[baiyun@hadoop102 ~]$ supervisorctl
error: <class 'socket.error'>, [Errno 13] Permission denied: file: <string> line: 1
supervisor>
[baiyun@hadoop102 ~]$ supervisorctl sudo
*** Unknown syntax: sudo
[baiyun@hadoop102 ~]$ supervisorctl sudo ^C
[baiyun@hadoop102 ~]$ supervisorctl sudo ^C
[baiyun@hadoop102 ~]$ chmod 777 /var/tmp/
chmod: 更改"/var/tmp/" 的权限: 不允许的操作
[baiyun@hadoop102 ~]$ sudo chmod 777 /var/tmp/
[baiyun@hadoop102 ~]$ supervisorctl
error: <class 'socket.error'>, [Errno 13] Permission denied: file: <string> line: 1
supervisor>
[baiyun@hadoop102 ~]$ sudo chmod 777 /var/tmp/supervisor.sock
[baiyun@hadoop102 ~]$ supervisorctl
grafana RUNNING pid 12821, uptime 0:07:06
node_exporter FATAL can't find command 'xcall'
prometheus RUNNING pid 12819, uptime 0:07:06
pushgateway RUNNING pid 12820, uptime 0:07:06
supervisor>