一件环境

更新源

yum install epel-release
yum update
yum clean packages



设置时区

列出时区:timedatectl list-timezones
修改时区:timedatectl set-timezone Asia/Shanghai



防火墙

1、firewalld的基本使用
启动: systemctl start firewalld
查看状态: systemctl status firewalld 
停止: systemctl disable firewalld
禁用: systemctl stop firewalld

添加:firewall-cmd --zone=public --add-port=80/tcp --permanent    (--permanent永久生效,没有此参数重启后失效)
重新载入:firewall-cmd --reload
查看:firewall-cmd --zone= public --query-port=80/tcp
删除:firewall-cmd --zone=public --remove-port=80/tcp --permanent
查看所有打开的端口: firewall-cmd --zone=public --list-ports

BBR

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

uname -r
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
sysctl net.core.default_qdisc
lsmod | grep bbr

 

posted on 2021-11-18 12:22  shabake  阅读(54)  评论(0编辑  收藏  举报

导航