个人小站

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 20|回复: 0

Ocacle Cloud 系列一:甲骨文云基本知识

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:348
  • 打卡月天数:2
  • 打卡总奖励:127963
  • 最近打卡:2024-09-12 09:49:55

69

主题

14

回帖

11万

积分

超级版主

Rank: 8Rank: 8

积分
111717

优秀版主论坛元老

发表于 2024-9-1 20:23:43 | 显示全部楼层 |阅读模式
Oracle初始配置
1、设置允许root口令登陆:
-> 获取管理员权限
  1. sudo -i
复制代码
-> 修改密码
  1. passwd root
复制代码

-> 设置允许使用root用户登录
  1. sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
复制代码
-> 设置启动密码认证
  1. sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
复制代码
-> 重启sshd服务
  1. sudo service sshd restart
复制代码
2、安装系统相关依赖
#centos系统
  1. yum update -y
  2. yum update -y && yum install curl -y
复制代码
#ubuntu系统
  1. apt update -y
  2. apt-get update -y && apt-get install curl -y
复制代码
3、删除、关闭、打开各自系统的无用附件、防火墙、端口及规则
#Centos系统
-> 删除多余附件
  1. systemctl stop oracle-cloud-agent
  2. systemctl disable oracle-cloud-agent
  3. systemctl stop oracle-cloud-agent-updater
  4. systemctl disable oracle-cloud-agent-updater
复制代码

-> 停止 firewall
  1. systemctl stop firewalld.service
复制代码
-> 禁止 firewall 开机启动
  1. systemctl disable firewalld.service
复制代码

-> 关闭selinux
  1. vi /etc/selinux/config
  2. SELINUX=ENFORING修改成SELINUX=DISABLED
复制代码

-> 保存好配置后重启
  1. reboot
复制代码
#Ubuntu系统
-> 开放所有端口
  1. iptables -P INPUT ACCEPT
  2. iptables -P FORWARD ACCEPT
  3. iptables -P OUTPUT ACCEPT
  4. iptables -F
复制代码

-> Ubuntu 镜像默认设置了 Iptable 规则,关闭它
  1. apt-get purge netfilter-persistent
  2. reboot
复制代码

-> 或者强制删除
  1. rm -rf /etc/iptables && reboot
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|个人小站

GMT+8, 2024-9-19 09:01 , Processed in 0.027466 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表