创建虚拟机
- 保存key
- 放通安全组入站规则
(实例右侧 打开附加的VNIC可以换公网ip)
虚机配置
1. 配置密码登录 ( 这里建议手动去修改下面两个参数 , 然后登陆的时候可以用root 、 或者ubuntu,可以手动改密码。改密命令:passwd)
sudo -i
echo root:你的新密码 |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
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
http://www.360doc.com/content/21/0621/19/14775740_983065146.shtml
6.卸载甲骨文agent
systemctl stop oracle-cloud-agent
systemctl disable oracle-cloud-agent
systemctl stop oracle-cloud-agent-updater
systemctl disable oracle-cloud-agent-updater
x-uu :https://github.com/vaxilu/x-ui 官方github 非野鸡转载
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)