美文网首页
Oracle切换root

Oracle切换root

作者: 单纯小码农 | 来源:发表于2022-09-16 10:43 被阅读0次

sudo -i
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
vim /root/.ssh/authorized_keys 删除 ssh-rsa前面部分

首先查看防火墙的状态
systemctl status firewalld.service
然后执行命令进行关闭
systemctl stop firewalld service
systemctl disable firewalld.service,开机禁止防火墙服务器
systemctl enable firewalld.service,开机启动防火墙服务器

iptables -A INPUT -p tcp --dport 31080 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 31080 -j ACCEPT

相关文章

网友评论

      本文标题:Oracle切换root

      本文链接:https://www.haomeiwen.com/subject/holjortx.html