mysqladmin variables | grep socket
Category Archives: linux
sslh
sslh accepts connections on specified ports, and forwards them further based on tests performed on the first data packet sent by the remote client.
Probes for HTTP, TLS/SSL (including SNI and ALPN), SSH, OpenVPN, tinc, XMPP, SOCKS5, are implemented, and any other protocol that can be tested using a regular expression, can be recognised. A typical use case is to allow serving several services on port 443 (e.g. to connect to SSH from inside a corporate firewall, which almost never block port 443) while still serving HTTPS on that port.
vmware check smart
esxcli storage core device list
esxcli storage core device smart get -d disk_name
vmware get version cli
vmware -vl
monit check fpm
grep -r "listen =" /etc/php/*/fpm/pool.d/*
find /run -iname php*.pid
vi /etc/monit/conf.d/php-fpm
check process php-fpm with pidfile /run/php/7/php-fpm.pid
start program = "/usr/sbin/service php7-fpm start" with timeout 60 seconds
stop program = "/usr/sbin/service php7-fpm stop"
if failed unixsocket /var/run/php7-fpm.sock then restart
monit -t
service monit reload
nginx start from command line
nginx -g "pid /var/run/nginx.pid; worker_processes `sysctl -n hw.ncpu`;"
ubuntu upgrade filebeat
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-7.x.list
apt-get update
apt list --upgradable | grep filebeat
apt-get --only-upgrade install filebeat
ERROR instance/beat.go:951 Exiting: 1 error: setting ‘filebeat.prospectors’ has been removed
Change filebeat.prospectors:
to:
filebeat.inputs:
create sftp user ubuntu
adduser -d /some/path user
Match User user
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /some/path
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
chown root.root /some/
chown user.user /some/path
lftp: Fatal error: Host key verification failed.
lftp -p 22 sftp://user@server
Password:
lftp [email protected]:~> ls
Fatal error: Host key verification failed.
ssh user@server should fix it
imapsync centos 8
dnf install wget perl-App-cpanminus gcc perl-libwww-perl perl-IO-Socket-INET6
dnf install wget perl-App-cpanminus gcc
cpanm lazy Test::MockObject
wget https://imapsync.lamiral.info/imapsync
perl -Mlazy imapsync
chmod +x imapsync
supervisor test config file
supervisorctl reread
supervisorctl update
cyberpanel change ip
/etc/cyberpanel/machineIP
whm login without password
whmapi1 create_user_session user=root service=whostmgrd
check public key length
ssh-keygen -lf ~/ssh/rsa_key.pub
2048 d5:cu:15:df:5d:44:…