创建服务器

创建虚拟机

  1. 保存key
  2. 放通安全组入站规则
    (实例右侧 打开附加的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)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容