您的位置:首页 > 运维架构 > Linux

Centos更换yum源,安装ssh server

2016-03-06 17:04 543 查看
先连上网,然后更换yum源

1. 新建的用户没有sudo权限,所以首先切换到root用户
su -
输入密码

2. 备份之前的yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

3. 下载yum源centos6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
4. 清理并生成缓存
yum clean all
yum makecache

安装ssh server

$ yum search ssh
$ yum install openssh-server
$ chkconfig --list sshd
sshd      0:off    1:off    2:on    3:on    4:on    5:on    6:off


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: