科技分享

  • 首页
  • 【直达】
    • 管理
31Tu 科技分享
  1. 首页
  2. 【VPS】
  3. 正文

Oracle甲骨文,初始配置

2022年1月7日 795点热度 0人点赞 0条评论

Oracle初始配置:

1、设置允许root口令登陆:
#获取管理员权限
sudo -i
#修改密码
passwd root
#设置允许使用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
#重启sshd服务
sudo service sshd restart

2、安装系统相关依赖
#centos系统
yum update -y
yum update -y && yum install curl -y
#ubuntu系统
apt update -y
apt-get update -y && apt-get install curl -y

3、删除、关闭、打开各自系统的无用附件、防火墙、端口及规则
#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
关闭selinux
vi /etc/selinux/config
SELINUX=ENFORING修改成SELINUX=DISABLED
保存好配置后重启
reboot

#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

标签: 暂无
最后更新:2022年1月7日

admin

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
最新 热点 随机
最新 热点 随机
【2022最新】特斯拉引荐码/邀请码,下订获得3500积分。Tesla referral code 多IP服务器更换IP Victoria硬盘检测教程 【PT站网址大全】--PT邀请码--PT站链接--China Private Tracker List 【PT介绍】-PT站排名--PT入门--PT和BT的区别 网页监控提醒-VPS补货提醒-WebMonitor
V2ray、Xray 一键脚本 PT盒子教程-CasaOS极简可视化面板,Linux一键安装 Linux常用脚本 威联通QNAP修改host 宝塔安装ServerStatus探针 Oracle甲骨文,初始配置

© 2021 31tu.com

Theme Kratos Made By Seaton Jiang