- config prometheus, grafana monitoring
- setting shadowsocks
git clone https://github.com/kitsnail/system-config.git
- download & update kernel
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y
- check update
rpm -qa | grep kernel
- remove old kernel
rpm -ev old-kernerl
- reboot
reboot
- seting BBR
sudo modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
sudo sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr
- install prometheus & grafana
cd system-config
chmod x prometheus-install.sh
./prometheus-install.sh
-
grafana settings
- login grafana: http://$ip:3000 user: admin (default) passwd: admin (default)
- add
datasource
, selectprometheus
,and seturl
'http://localhost:9090', clickSave&Test
- click ' ' , 'import',and upload json file 'grafana-template.json'
-
install shadowsocks
chmod x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log