CentOS7 最小化安装必备软件及常用设置

2018-11-16  本文已影响0人  最美的谣言

必备软件

yum install -y net-tools
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)

关闭centos7默认的firewall防火墙

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

安装oh-my-zsh

  1. 安装zsh包
    yum -y install zsh

  2. 切换默认shell为zsh
    chsh -s /bin/zsh

(重启或者关闭当前终端)

  1. 安装on my zsh
  1. 安装插件
    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

  2. 查看oh my zsh主题
    ls ~/.oh-my-zsh/themes

  3. 修改主题
    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)

  4. 使配置立即生效
    $ source ~/.zshrc

后续还在整理中

thanks

上一篇下一篇

猜你喜欢

热点阅读