ss&ssr 客户端下载
ss&ssr windows客户端下载地址: https://down.whsir.com/downloads/ss-2.5.8.zip https://down.whsir.com/downloads/ss-3.4.3.zip https://down.wh … 阅读全文
ss&ssr windows客户端下载地址: https://down.whsir.com/downloads/ss-2.5.8.zip https://down.whsir.com/downloads/ss-3.4.3.zip https://down.wh … 阅读全文
ss全局代理SocksCap64下载 https://down.whsir.com/downloads/sockscap64w_V3.3_setup.zip https://down.whsir.com/downloads/SocksCap64-setup-4 … 阅读全文
脚本修改默认端口,替换iptables防火墙等,内容如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
#!/bin/bash #关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config setenforce 0 #安装wget yum -y install wget yum-utils #更换yum源 repo=`ls /etc/yum.repos.d/repo.bak | wc -l` if [ $repo -eq 0 ]; then mkdir /etc/yum.repos.d/repo.bak mv /etc/yum.repos.d/CentOS* /etc/yum.repos.d/repo.bak cd /etc/yum.repos.d/ wget http://blog.whsir.com/uploads/CentOS7-Base-163.repo yum clean all yum makecache else echo "yum OK" fi #更新时间和系统 cd yum -y install vim screen ntp /usr/sbin/ntpdate ntp1.aliyun.com yum -y update #更改端口 sed -i 's/#Port 22/Port 2188/' /etc/ssh/sshd_config #设置防火墙ifconfig systemctl stop firewalld.service systemctl disable firewalld.service yum -y install iptables-services net-tools systemctl enable iptables.service sed -i 's/22/2188/' /etc/sysconfig/iptables systemctl restart iptables.service systemctl restart sshd yum -y install epel-release #关闭postfix systemctl disable postfix #更改ulimit limit=`cat /etc/security/limits.conf | grep 65535 | wc -l` if [ $limit -eq 0 ]; then echo "ulimit -SHn 65535" >> /etc/rc.local cat >> /etc/security/limits.conf << EOF * soft nofile 65535 * hard nofile 65535 EOF else echo "ulimit ok" fi #开机启动优化 for i in acpid gpm lvm2-monitor anacron haldaemon mcstrans oddjobd setroubleshoot atd halt mdmonitor pand single auditd hidd mdmpd pcscd smartd hplip messagebus avahi-daemon ip6tables microcode_ctl snmptrapd avahi-dnsconfd ipmi multipathd psacct bluetooth rawdevices svnserve conman irda netconsole rdisc cpuspeed irqbalance netfs readahead_early tcsd iscsi netplugd readahead_later winbind cups iscsid restorecond wpa_supplicant cups-config-daemon kdump NetworkManager rpcgssd dnsmasq killall nfs rpcidmapd ypbind dund krb524 nfslock rpcsvcgssd yum-updatesd firstboot lm_sensors nscd saslauthd do chkconfig $i off > /dev/null 2>&1 done date |
下载地址:
1 |
wget https://down.whsir.com/downloads/centos7init.sh |
~微信打赏~ 赏
什么是BBR? TCP BBR是Google开源的TCP拥塞控制算法,BBR的目的是要尽量跑满带宽,并且尽量不要有排队的情况,BBR可以起到单边加速TCP连接的效果,类似于"锐速",可用于优化TCP连接(使ss连接更快)。 Linux内核从4.9开始,已经用上 … 阅读全文
docker commit了一个镜像之后想删除旧的镜像,出现以下报错 Error response from daemon: conflict: unable to delete 6f8214d56bfc (cannot be forced) - image … 阅读全文
当zabbix创建了多个主机时,想要把这些主机的流量汇总起来,这时候就用到了zabbix整合类型 官方文档:https://www.zabbix.com/documentation/3.2/manual/config/items/itemtypes/aggre … 阅读全文
开启mysql慢日志 MySQL的慢查询日志是MySQL提供的一种日志记录,它用来记录在MySQL中响应时间超过阀值的语句,具体指运行时间超过long_query_time值的SQL,则会被记录到慢查询日志中。long_query_time的默认值为10,意思 … 阅读全文
zabbix3.2监控centos负载,当前使用centos6.9版本 1、开启对应防火墙端口
1 |
vim /etc/sysconfig/iptables |
添加
1 2 |
-A INPUT -p tcp --dport 10050 -j ACCEPT -A INPUT -p udp --dport 10050 -j ACCEPT |
重启iptables使其生 … 阅读全文
客户端配置(centos6.9) 1、开启对应防火墙端口
1 |
vim /etc/sysconfig/iptables |
添加
1 2 |
-A INPUT -s 服务端IP -p tcp --dport 10050 -j ACCEPT -A INPUT -s 服务端IP -p udp --dport 10050 -j ACCEPT |
重启iptables使其生效 [crayon-679ce2ae1 … 阅读全文
使用cacti监控windows时,发现有台windows网卡描述带有中文名称,导致cacti获取不到网卡,并且zabbix也同样获取不到值,此方法也适用于zabbix 当前windows网卡设备描述名称 Broadcom BCM5709C NetXtreme … 阅读全文