中文久久,精品伦精品一区二区三区视频,美国AV一区二区三区,国产免费小视频

意見箱
恒創(chuàng)運(yùn)營部門將仔細(xì)參閱您的意見和建議,必要時(shí)將通過預(yù)留郵箱與您保持聯(lián)絡(luò)。感謝您的支持!
意見/建議
提交建議

重啟sshd服務(wù)會影響服務(wù)器嗎

來源:佚名 編輯:佚名
2024-06-17 13:19:49

問題描述:

CentOS7.5 修改默認(rèn)ssh端口號,重啟sshd失敗如何解決

重啟sshd時(shí) :

解決方案:

1.關(guān)閉setenforce

setenforce 0

設(shè)置永久關(guān)閉selinux

vim /etc/sysconfig/selinux

將第7行內(nèi)容修改如下

SELINUX=disabled
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

2.啟動sshd服務(wù)

systemctl start sshd

3.查看sshd服務(wù)狀態(tài)

systemctl status sshd

4.防火墻開放sshd端口

firewall-cmd --zone=public --add-port=2023/tcp --permanent
firewall-cmd --reload
systemctl restart sshd



本網(wǎng)站發(fā)布或轉(zhuǎn)載的文章均來自網(wǎng)絡(luò),其原創(chuàng)性以及文中表達(dá)的觀點(diǎn)和判斷不代表本網(wǎng)站。
上一篇: mysql啟動日志在哪里看(mysql錯(cuò)誤日志路徑) 下一篇: rm-rf/*命令有什么用(rm -rf *和rm -rf /*的區(qū)別)
相關(guān)文章
查看更多