cPanel, mysql error, openvz container
Failed at step NAMESPACE spawning /usr/bin/mysqld_pre_systemd: Cannot allocate memory
error occurs when jailed Apache enabled
check /proc/mounts limits
poniedziałek, 12 sierpnia 2019
wtorek, 6 sierpnia 2019
BORG backup: restrict client commands on remote SSH
Add on backup server to .ssh/authorized_keys:
command="borg serve --restrict-to-path /home/USER/REPO.borg",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-rsa KEY
command="borg serve --restrict-to-path /home/USER/REPO.borg",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-rsa KEY
cPanel DNS cluster - force sync zones to cPanel Slave Only from command line
1. Enable DNS cluster
2. Add cPanel Slave Only to MASTER as 'Synchronize changes'
3. Run from command line on master:
/usr/local/cpanel/scripts/dnscluster syncall --full
Check how many zones listed on slave:
[12:07:15 SLAVE root@XXXXXX ~]cPs# /usr/local/cpanel/whostmgr/bin/dnsadmin --action GETZONELIST --localonly|wc -l
1300
2. Add cPanel Slave Only to MASTER as 'Synchronize changes'
3. Run from command line on master:
/usr/local/cpanel/scripts/dnscluster syncall --full
Check how many zones listed on slave:
[12:07:15 SLAVE root@XXXXXX ~]cPs# /usr/local/cpanel/whostmgr/bin/dnsadmin --action GETZONELIST --localonly|wc -l
1300
piątek, 2 sierpnia 2019
Recreate /boot directory on Centos 7
chroot / rescue / whatever
mv /boot{,.old}
mkdir -p /boot
chmod 0555 /boot
yum reinstall kernel -y
grub2-install /dev/xxx
grub2-mkconfig /boot/grub2/grub.cfg
ln -s /boot/grub2/grub.cfg /etc/grub2.cfg
mv /boot{,.old}
mkdir -p /boot
chmod 0555 /boot
yum reinstall kernel -y
grub2-install /dev/xxx
grub2-mkconfig /boot/grub2/grub.cfg
ln -s /boot/grub2/grub.cfg /etc/grub2.cfg
Subskrybuj:
Posty (Atom)