Loading... 建议系统 CentOS 7+ Ubuntu 16+ Debian 8+ 安装&升级 ``` bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) ``` bbr ``` wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh ``` WARP ``` wget -N --no-check-certificate https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh && bash CFwarp.sh ``` 保活 ``` curl -L https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh -o oalive.sh && chmod +x oalive.sh && bash oalive.sh ``` 中转脚本 ``` wget -N --no-check-certificate "https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh" && chmod +x natcfg.sh && ./natcfg.sh ``` 测速脚本 ``` wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh ``` 解决/boot/grub2/grub.cfg ``` #/boot/grub/grub.conf 缺失: yum install -y grub grub-mkconfig -o /boot/grub/grub.conf #/boot/grub2/grub.cfg 缺失: yum install -y grub2 grub2-mkconfig -o /boot/grub2/grub.cfg ``` 更换国内源 ``` bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) ``` 安装Docker ``` bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) ``` 更新系统 ``` yum update -y #CentOS系统命令 apt update -y #Debian系统命令 安装工具组件 yum install -y wget #CentOS系统命令 apt install -y wget #Debian系统命令 Ubuntu系统下: 开放所有端口 iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F ``` 防火墙解除 ``` centos操作如下: #停止firewall systemctl stop firewalld.service #禁止firewall开机启动 systemctl disable firewalld.service #关闭iptables service iptables stop #去掉iptables开机启动 chkconfig iptables off oracle Linux操作如下: #停止firewall systemctl stop firewalld.service #禁止firewall开机启动 systemctl disable firewalld.service ubuntu操作如下: #Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它 apt-get purge netfilter-persistent reboot #强制删除 rm -rf /etc/iptables && reboot ``` 开启SSH ``` sudo -i passwd 设置root密码 vi /etc/ssh/sshd_config 修改配置文件 PermitRootLogin yes PasswordAuthentication yes reboot重启服务器 ``` Last modification:March 12, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 1 如果觉得我的文章对你有用,请随意赞赏