首页 > 网事如风 > Oracle Cloud甲骨文云初始配置
2021
11-16

Oracle Cloud甲骨文云初始配置

原文:https://zhuanlan.zhihu.com/p/352736372
用Putty登陆入,用户名是opc或ubuntu
切换到root角色
sudo -i

1.安装相关依赖
CentOS如下
yum -y install wget
yum update -y && yum install curl -y
Ubuntu如下
apt-get install wget
apt-get update -y && apt-get install curl -y

2.删除、关闭、打开各自系统的无用附件、防火墙、端口及规则
CentOS系统
删除多余附件
systemctl stop oracle-cloud-agent
systemctl disable oracle-cloud-agent
systemctl stop oracle-cloud-agent-updater
systemctl disable oracle-cloud-agent-updater
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service

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

觉得文章有用,微信打赏一元。



留下一个回复

你的email不会被公开。