甲骨文常用命令

Linux
1394 0
#升级系统软件
apt update && apt upgrade -y && apt install -y curl wget vim net-tools

删除、关闭、打开各自系统的无用附件、防火墙、端口及规则

Ubuntu系统下:
开放所有端口

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

#Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
#或者强制删除
rm -rf /etc/iptables && reboot

cloud-init脚本

#!/bin/bash
echo root:RUYO |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

时间校准

rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

升级内核开启BBR

grub2-mkconfig -o /boot/grub2/grub.cfg
wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

关闭防火墙

#停止firewall
systemctl stop firewalld.service
 
#禁止firewall开机启动
systemctl disable firewalld.service

甲骨文DD

开通机器时候选择ubuntu16.04然后执行下面的命令

debian9

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -firmware

dd Debian10

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware
默认密码:root / MoeClub.org
最后更新 2021-12-02
评论 ( 0 )
评论已关闭