科技分享

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

Oracle甲骨文,初始配置

2022年1月7日 385点热度 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

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

点赞
< 上一篇
下一篇 >

文章评论

取消回复
最新 热点 随机
最新 热点 随机
威联通QNAP修改host Hysteria教程、一键脚本,youtube直上10W++ PT盒子教程、Seedbox-qBittorrent 一键脚本 Linux使用Docker安装qbittorrent 甲骨文PT盒子、swizzin安装教程,适用ARM-UBUNTU Xray+宝塔共存,支持多网站,多节点!
威联通QNAP修改host
PT盒子教程、Seedbox-qBittorrent 一键脚本 Oracle甲骨文,初始配置 Xray+宝塔共存,支持多网站,多节点! ubuntu 80端口被占用解决办法 XRAY教程 可视化面板X-ui,保姆级搭建教程 V2ray、Xray 一键脚本

© 2021 31tu.com

Theme Kratos Made By Seaton Jiang