CentOS7|CentOS7 最小化安装必备软件及常用设置
必备软件
yum install -y net-tools关闭centos7默认的firewall防火墙
yum install -y wget
yum install -y vim-enhanced
yum install -y sysstat #sar工具
yum install -y psmisc #pstree工具,killall杀进程的
yum install -y iptraf-ng #流量监控
yum install -y bash-completion #systemctl命令补全
yum install -y gcc gcc-c++ #任何编译安装必备
yum install -y git #装git
yum install -y telnet
yum install -y telnet-server
yum install -y java (openjdk)
systemctl stop firewalld.service #停止firewall安装oh-my-zsh
systemctl disable firewalld.service #禁止firewall开机启动
- 安装zsh包
yum -y install zsh
- 切换默认shell为zsh
chsh -s /bin/zsh
- 安装on my zsh
- curl 方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- wget 方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) -O -)"
- 安装插件
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
git clone git://github.com/joelthelion/autojump.git
- 查看oh my zsh主题
ls ~/.oh-my-zsh/themes
- 【CentOS7|CentOS7 最小化安装必备软件及常用设置】修改主题
vim ~/.zshrc (默认的主题是ZSH_THEME="robbyrussell")
1.ZSH_THEME="ys"
2.同时修改plugins=(git git-flow grails rvm history-substring-search github gradle svn node npm zsh-syntax-highlighting sublime autojump)
- 使配置立即生效
$ source ~/.zshrc
thanks
推荐阅读
- Mac安装Chromedriver
- MongoDB,Wondows下免安装版|MongoDB,Wondows下免安装版 (简化版操作)
- MAC安装Mongo
- 【Hadoop踩雷】Mac下安装Hadoop3以及Java版本问题
- react|react 安装
- VueX--VUE核心插件
- python-安装sublime遇到异常
- typeScript入门基础介绍
- 监控nginx
- 使用homeBrew|使用homeBrew 安装Goland