欢迎访问 [筑砼匠] ,
我们努力分享有用的专业知识。

Oracle Cloud ARM实例安装系统后必要操作

进入ROOT模式:sudo -i
1:Oracle Cloud 开启root登录

SSH里面粘贴如下脚本,其中的******为你自己需要设置的root密码
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

2:安装相关依赖

centos系统下
yum update -y

ubuntu系统下
apt update -y
apt-get update -y && apt-get install curl -y


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

3.1 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

3.2 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

4:安装相关脚本吧。

赞(0) 打赏
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权。
文章名称:《Oracle Cloud ARM实例安装系统后必要操作》
本站资源仅供个人学习交流使用,请于下载后24小时内删除,不允许用于任何商业用途,否则法律问题自行承担。

评论/留言 抢沙发

筑砼匠_筑之所道,匠心天成。

筑砼匠建筑结构工程博客是专注于建筑结构、土木工程、结构工程、钢结构、工程设计、工程管理、工程规范、考试考证、工程专业软件使用等工程领域的技术型知识分享博客。

关于本站隐私政策

觉得文章对你有用就扫码赞助一下本站吧O(∩_∩)O~。

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起构建更加和谐的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册

Search
软件
主页
建筑
土木