Oracle切换root

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容