Mount sshfs in fstab

Install sshfs apt install -y sshfs Edit config /etc/fuse.conf uncomment # Allow non-root users to specify the allow_other or allow_root mount options. user_allow_other Add line to fstab sshfs#user@itc-life.ru:/ /home/user/mount/itc-life.ru/ fuse user,port=22,_netdev,reconnect,uid=1000,gid=1000,idmap=user,allow_other 0 0 Check mount mount /home/user/mount/itc-life.ru/ PROFIT!!! […]

Читать дальше… from Mount sshfs in fstab

Run node_exporter prometheus with supervisor as daemon

Run node_exporter prometheus with supervisor 1. Install supervisor apt-get install supervisor -y 2. Configure service node_exporter with supervisor 2.1 Get node_exporter cd /opt/ wget https://github.com/prometheus/node_exporter/releases/download/v0.15.2/node_exporter-0.15.2.linux-amd64.tar.gz tar -xvf node_exporter-0.15.2.linux-amd64.tar.gz 2.2 Create supervisor config mkdir -p /etc/supervisor/conf.d/ nano /etc/supervisor/conf.d/node_exporter.conf 2.3 Past text in file [supervisord] nodaemon=true environment=HOME=”/usr/bin/” [program:node_exporter] command=/opt/node_exporter-0.15.2.linux-amd64/node_exporter –web.listen-address=:9100 autostart=true autorestart=true startretries=3 stderr_logfile=/var/log/node_exporter.err.log stdout_logfile=/var/log/node_exporter.out.log user=root 2.4 […]

Читать дальше… from Run node_exporter prometheus with supervisor as daemon

Mount nfs with write/read permissions for user

Mount nfs with write/read permissions for user On nfs server. Make write perm for user with uid 0 – root nano /etc/exports /MOUNT 192.168.1.1(rw,sync,all_squash,anonuid=0,anongid=0) Change owner on folder chown -R nobody /MOUNT) Restart nfs /etc/init.d/nfs-kernel-server restart On client 192.168.1.1:/MOUNT /mount nfs rsize=8192,wsize=8192,timeo=14,intr […]

Читать дальше… from Mount nfs with write/read permissions for user