@llplmlyd
2018-10-28T19:50:15.000000Z
字数 1570
阅读 850
HTTP
secureCRT突然无法连接
1.sudo apt-get install openssh-server openssh-client
2.rpm -qa | grep ssh查看SSH是否安装 若没有执行第1步
3.service sshd status 查看是否开启 如果没有继续下面
4.启动SSH服务 service sshd restart 停止服务 service sshd stop
5.netstat -antp | grep sshd 查看是否启动22端口
6.chkconfig sshd on 设置SSH服务为开机启
1.删除原有的yum
查询yum源
rpm -qa yum
删除yum源
rpm -e --nodeps yum-3.4.3-154.el7.centos.1.noarch
2.下载yum安装文件 (若没有此包,可以去阿里镜像或网易镜像找到包名一样的下下来即可)
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
3.进行安装yum
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-150.el7.centos.noarch.rpm rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
注意最后两个包必需同时安装,否则会相互依赖
4.更新repo文件
进入 /etc/yum.repos.d文件夹下,
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
删除原来的配置文件 rm -rf CentOS-Base.repo
修改新配置文件名 mv CentOS7-Base-163.repo CentOS7-Base.repo
链接:https://www.jianshu.com/p/ecf358e9e386
linux上搭建的nginx在windows上访问失败解决方法
https://blog.csdn.net/u012759397/article/details/56844117
iptables
http://blog.51yip.com/linux/1404.html
查看防火墙状态
systemctl status firewalld
设置防火墙端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
重启防火墙
firewall-cmd --reload