admin管理员组文章数量:1026804
安装完linux系统之后需要做的事情
以centos7为例:
1.用root用户登录
2. tab键补全安装包
yum -y install bash-completion
reboot 重启服务器生效
3.安装vim
yum install -y vim
4.配置网络
最后重启网络服务:systemctl restart network
ip addr 查看有没有获取到地址 用电脑的cmd ping一下ip看看有没有通。
5.关闭防火墙(可选)和selinux
命令:systemctl stop firewalld systemctl disabled firewalld
再输入vim /etc/sysconfig/selinux 输入i。enforcing修改selinux=disabled
reboot 重启
6.配置yum源
yum源放置的位置:cd /etc/yum.repos.d/
这里我是先备份 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup(最好不要删除)然后去使用阿里或者其他的centos源
yum clean all 清除缓存,运行 yum makecache 生成新的缓存
yum update 更新软件包
7.修改hostname和hosts
vim /etc/hostname
安装完linux系统之后需要做的事情
以centos7为例:
1.用root用户登录
2. tab键补全安装包
yum -y install bash-completion
reboot 重启服务器生效
3.安装vim
yum install -y vim
4.配置网络
最后重启网络服务:systemctl restart network
ip addr 查看有没有获取到地址 用电脑的cmd ping一下ip看看有没有通。
5.关闭防火墙(可选)和selinux
命令:systemctl stop firewalld systemctl disabled firewalld
再输入vim /etc/sysconfig/selinux 输入i。enforcing修改selinux=disabled
reboot 重启
6.配置yum源
yum源放置的位置:cd /etc/yum.repos.d/
这里我是先备份 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup(最好不要删除)然后去使用阿里或者其他的centos源
yum clean all 清除缓存,运行 yum makecache 生成新的缓存
yum update 更新软件包
7.修改hostname和hosts
vim /etc/hostname
版权声明:本文标题:Linux系统安装后需要做什么? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1740324106a1751868.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论