In the boot grub menu select option to edit. Select Option to edit (e). Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh. rw init=/sysroot/bin/sh Now press Control+x to start on single user mode. Now access the system with this command. chroot /sysroot Reset the password. passwd root Update selinux information ..
Category : Linux
Identify mount point e.g. via /etc/fstab Find systemd unit (see below) Add the found mount-unit to the After= statement in the *.service file (see below) systemctl list-units | grep ‘/path/to/mount’ | awk ‘{ print $1 }’ path-to-mount.mount vi /etc/systemd/system/php-fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target path-to-m..
No idea how I’ve never needed to use this before, check out the reboot Last system reboot time/date # who -b system boot 2018-12-20 08:11 History of Reboots # last reboo..
Show information about top cpu, top latency, top memory and top IO dstat -c –top-cpu -d –top-bio –top-latency..
Install Repo cd /etc/yum.repos.d/ wget http://packages.ntop.org/centos-stable/ntop.repo -O ntop.repo Install Epel rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Install NTOP-NG yum erase zeromq3 yum clean all yum update yum install pfring n2disk nprobe ntopng ntopng-data cento yum install pfring-drivers-zc-dkms Open Firewall firewall-cmd –zone=public –add-port=3000/tcp –permanent firewall-cm..
# tuned-adm list Available profiles: – balanced – General non-specialized tuned profile – desktop – Optimize for the desktop use-case – latency-performance – Optimize for deterministic performance at the cost of increased power consumption – network-latency – Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance – ..
Nothing new, just for copy and paste purposes # netstat -ant | grep :80 | awk ‘{print $6}’ | sort | uniq -c | sort -n 1 CLOSING 1 LISTEN 2 LAST_ACK 11 FIN_WAIT2 16 FIN_WAIT1 67 ESTABLISHED 425..
cat /proc/version > r1soft.txt cat /etc/*release >> r1soft.txt uname -a >> r1soft.txt uname -r >> r1soft.txt serverbackup-setup -v >> r1soft.txt rpm -qa |grep serverback >> r1soft.txt rpm -qa |grep kernel >> ..
Great stuff from – https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/ # sysctl -a | grep dirty vm.dirty_background_ratio = 10 vm.dirty_background_bytes = 0 vm.dirty_ratio = 20 vm.dirty_bytes = 0 vm.dirty_writeback_centisecs = 500 vm.dirty_expire_centisecs = 3000 vm.dirty_background_ratio is the percentage of system memory that can be filled with “dirty” pages — memory pages that still need to be written to disk — ..