个人配置
首先我么能完成对VMware以及CentOS镜像的下载
我们进入安装CentOS的界面
其他不用设置,记得设置root用户密码
等待安装,安装完成后
输入root
密码
配置ip
命令:nmtui
配置完ip信息后,通过Xshell连接
关闭防护:
防火墙:
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
关闭SELinux
[root@localhost ~]# vim /etc/selinux/config
修改 SELINUX=disabled
光盘yum源搭建
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost yum.repos.d]# vim CentOS-Media.repo
创建yum缓存提高软件安装时的效率-查询
[root@localhost ~]# yum makecache
设置光驱自动挂载
[root@localhost ~]# echo "/dev/sr0 /media iso9660 defaults 0 0" >> /etc/fstab
[root@localhost ~]# mount -a
还可以
更改主机名
hostnamectl set-hostname 新名字
vim /etc/hosts 在127,最后添加新名字
彩色终端命令行
[root@localhost ~]# vim /etc/profile
加在profile最后一行
export PS1="[\[\e[34;1m\]\u@\[\e[0m\]\[\e[32;1m\]\H\[\e[0m\] \[\e[31;1m\]\w\[\e[0m\]]\\$ "
[root@localhost ~]# source /etc/profile