- CentOS
yum install -y make gcc gcc-c++ make \ autoconf automake libtool cmake \ python python-six libpcap-devel \ libcap-devel libcap-ng-devel openssl-devel \ pciutils numactl-devel kernel-devel
This file contains 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
obj-m += tcp_svr_sample.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clea |
This file contains 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
!xrdb ~/.Xresources | |
xterm.locale:true | |
xterm.utf8: true | |
xterm*utf8Title:true | |
xterm*fontMenu*fontdefault*Label:Default | |
xterm*faceName:xos4 Terminus Regular:antialias=true:pixelsize=12 | |
xterm*faceNameDoublesize:WenQuanYi Micro Hei Mono:pixelsize=12:antialias=true |
This file contains 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
#!/bin/bash | |
# First we need to get the modeline string for xrandr | |
# Luckily, the tool `gtf` will help you calculate it. | |
# All you have to do is to pass the resolution & the- | |
# refresh-rate as the command parameters: | |
gtf 1920 1080 60 | |
# In this case, the horizontal resolution is 1920px the | |
# vertical resolution is 1080px & refresh-rate is 60Hz. |
This file contains 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
Ok, It seems, I had missed the "u" flag for user so accidentally I had input the following command. | |
mysql -root -p // Faulty connection | |
Instead of ... | |
mysql -uroot -p // Correct connection |
This file contains 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
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'Cde!@#123'; FLUSH PRIVILEGES; | |
GRANT ALL PRIVILEGES ON *.* TO sstuser@'%' IDENTIFIED BY 'Cde!@#123'; FLUSH PRIVILEGES; | |
GRANT ALL PRIVILEGES ON *.* TO sstuser@'localhost' IDENTIFIED BY 'Cde!@#123'; FLUSH PRIVILEGES; | |
yum -y install libtool ncurses-devel libgcrypt-devel libev-devel \ | |
git scons gcc gcc-c++ openssl check cmake \ | |
asio-devel libaio-devel ncurses-devel readline-devel pam-devel socat \ | |
libaio automake autoconf libtool check-devel curl curl-devel xinetd | |
This file contains 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
# /etc/sysctl.conf | |
fs.file-max = 200000 | |
vm.swappiness = 10 | |
net.ipv4.ip_local_port_range = 1024 65000 | |
net.core.rmem_max = 33554432 | |
net.core.wmem_max = 33554432 | |
net.core.rmem_default = 33554432 | |
net.core.wmem_default = 33554432 |
This file contains 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
back_log=1024 | |
connect_timeout=15 | |
skip_name_resolve = on | |
max_connections = 50000 | |
table_definition_cache = 2000 | |
table_open_cache = 10000 | |
innodb_purge_threads = 4 | |
innodb_read_io_threads = 8 | |
innodb_write_io_threads = 8 |
This file contains 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
[client] | |
socket=/go/pxc/data1/mysql.sock | |
user=root | |
password=Cde!@#123 | |
[mysqld] | |
user=mysql | |
datadir=/go/pxc/data1 | |
socket=/go/pxc/data1/mysql.sock | |
pid-file=/go/pxc/data1/mysql-node1.pid | |
port=3316 |
This file contains 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
intel_idle.max_cstate=0 idle=poll quiet cgroup_enable=memory crashkernel=256M intel_pstate=disable | |
[mysql] | |
default-character-set=utf8mb4 | |
user = root | |
password = 123456 | |
port = 3306 | |
socket = /tmp/mysqld.sock | |
prompt="\u@\h \d>" | |
OlderNewer