本地CentOS服务器搭建(下)

in progress

DNS配置

[root@server ~]# vim /etc/resolv.conf 
# Generated by NetworkManager
# google
nameserver 8.8.8.8
nameserver 8.8.4.4
# china
nameserver 218.2.135.1
nameserver 61.147.37.1

zsh配置

[root@server ~]# yum install zsh
[root@server ~]# cat /etc/shells 
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/zsh
[root@server ~]# cd /opt/
[root@server opt]# yum install git wget –y
[root@server opt]# wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
[root@server opt]# vim ~/.zshrc
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
[root@server opt]# chsh -s /bin/zsh
Changing shell for root.
chsh: Shell not changed.
[root@server opt]# exit
➜  ~

你可能感兴趣的:(本地CentOS服务器搭建(下))