This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELREPO: https://elrepo.org/tiki/tiki-index.php | |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm | |
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm | |
EPELREPO: | |
yum -y install epel-release | |
REMIREPO: http://rpms.famillecollet.com/ | |
rpm --import http://rpms.remirepo.net/RPM-GPG-KEY-remi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmidecode -t processor | grep -i version | |
dmidecode -t process | grep -i cache | |
dmidecode -t processor | grep -i count | |
dmidecode -t processor | grep -i capable | |
lscpu | |
uname -r | |
cat /etc/issue | |
cat /etc/redhat-* | |
free -m | |
dmidecode -t memory | grep -i "Number of devices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lspci | egrep -i 'ethernet|network' | |
if you are using Intel 82574L, you should upgrade module. | |
Follow https://elrepo.org/tiki/tiki-index.php | |
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm | |
sudo lsmod|grep e1000e | |
Output: | |
e1000e 230782 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo blkid ### Get device | |
sudo cryptsetup luksOpen <device> <map-name> | |
sudo mount /dev/mapper/<map-name> /mnt/ | |
sudo umount /mnt | |
sudo cryptsetup luksClose <map-name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo passwd username | |
ecryptfs-mount-private ### Enter old password | |
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase ### Enter new password | |
ecryptfs-unwrap-passphrase ### Recheck passphrase with new password. Passphrase is unchanged when you change your login password | |
Passwords and Keys > Change password of login keyring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just compare in mysqld section | |
pt-config-diff /etc/my.cnf.d/server.cnf h=localhost --user=root --ask-pass | |
pt-config-diff /etc/my.cnf.d/server.cnf /etc/my.cnf.d/server1.cnf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pt-variable-advisor localhost --user=root --ask-pass | |
perl mysqltuner.pl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://mysqltuner.pl/ -O mysqltuner.pl | |
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt | |
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv | |
chmod u+x mysqltuner.pl | |
perl mysqltuner.pl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port 3306 for mysqld | |
port 4567 for replication traffic | |
port 4444 for joiner get SST from donor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqladmin status | |
service mysql status | |
service mysqld status | |
ps -ef | grep mysqld | grep -v grep | |
mysql -uroot -p -A -e"SHOW VARIABLES;" > MySQLCurrentSettings.txt | |
tail -f /var/log/mysqld/mysql_error.log | |
tail -f /var/log/mysqld/mysql_slow.log | |
pt-summary | |
pt-mysql-summary --user=root --ask-pass | |
pt-variable-advisor localhost --user=root --ask-pass |