vi /etc/ssh/sshd_config # Subsystem sftp /usr/libexec/openssh/sftp-server Subsystem sftp /usr/libexec/openssh/sftp-server -l VERBOSE -f LOCAL3 vi /etc/rsyslog.conf local3.* /var/log/sftpd.log systemctl restart rsyslog.service systemctl restart sshd.service
Fedora 34 : yum install mariadb:10.x Hint
dnf module list mariadb dnf module enable mariadb:10.7 dnf install mariadb-*
Fedora: vgrename root partition Hint
vgdisplay old_name=fedora_fedora new_name=fedora vgrename -v $old_name $new_name; sed -i "s/\/${old_name}-/\/${new_name}-/g" /etc/fstab; sed -i "s/\([/=]\)${old_name}\([-/]\)/\1${new_name}\2/g" /boot/grub2/grub.cfg; dracut -f -v /boot/initramfs-$(uname -r).img $(uname -r); systemctl reboot -f;
Fedora : Hardware Info : dmidecode, lshw
dmidecode -t system dmidecode -t bio dmidecode -t processor dmidecode -t memory lshw -class disk lshw -class network lshw -class bus
linux : [ERROR] mariadb: Aria recovery failed. Hint
# systemctl status mariadb × mariadb.service - MariaDB 10.5.16 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/mariadb.service.d └─migrated-from-my.cnf-settings.conf Active: failed (Result: exit-code) since ......; 28s ago Docs: man:mariadbd(8) https://mariadb.com/kb/en/library/systemd/ […]
Fedora : bind disable ipv6 Hint
vi /etc/named.conf filter-aaaa-on-v4 yes; named-checkconf /etc/named.conf vi /etc/sysconfig/named OPTIONS="-4" systemctl restart named-chroot systemctl status named-chroot
Fedora : CPU Thermal Monitor Hint
yum install -y lm_sensors sensors-detect sensors watch sensors\
linux : /var/crash/ : disk full Hint
du -msh /var/crash/* rm /var/crash/????
mlocate : disk full & disable Hint
ps aux | grep updatedb killall updatedb ls -alh /var/lib/mlocate/ -rw-r----- 1 root slocate 30G mlocate.db.xxxxxx rm -f /var/lib/mlocate/mlocate.db.xxxxxx ll /etc/cron.daily/mlocate mkdir /etc/cron.daily/out mv /etc/cron.daily/mlocate /etc/cron.daily/out
Fedora 3X : resin.service regist Hint : systemctl daemon-reload & chkconfig
# cd # wget https://caucho.com/download/rpm-6.8/4.0.63/x86_64/resin-4.0.63-1.x86_64.rpm # rpm -ivh resin-pro-4.0.63-1.x86_64.rpm # systemctl daemon-reload # systemctl enable resin.service resin.service is not a native service, redirecting to systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable resin Failed to execute /usr/lib/systemd/systemd-sysv-install: # yum install chkconfig -y # systemctl enable resin.service resin.service is not a native service, redirecting to systemd-sysv-install. […]