關閉selinux
vi /etc/sysconfig/selinux配置網絡卡(最小化安裝後ifconfig無法使用),該配置的前提是採用 nat模式selinux=disabled
:wq
# 檢查網絡卡
ip addr 或者
更新yum
yum -y update聯網後安裝ifconfig
yum -y install net-tools安裝常用工具
yum -y install curl telnet vim wget修改history大小lrzsz
//修改vim配置
vim ~/.vimrc
set encoding=utf-8
"檔案編碼
set number "
顯示行號
set tabstop=4
"tab寬度為4
set softtabstop=4
"設定一次可以刪除4個空格
set expandtab "
tab轉換為空格
set nowrap "
不自動換行
set showmatch "
顯示括號配對情況
syntax on "
開啟語法高亮
vim /etc/profile設定時區為上海時區history=100
:wq
ll /etc/localtime安裝依賴關係//如果不為上海時區則執行
rm -rf /etc/localtime ln -s /etc/localtime /usr/share/zoneinfo/asia/shanghai
yum -y install安裝tmux終端復用軟體gccgcc-c++ make autoconf wget lrzsz libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2
bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel openssl openssl-devel libxslt-devel libevent-devel libtool libtool-ltdl bison gd gd-devel vim-enhanced pcre-devel zip
unzip ntpdate sysstat patch bc expect rsync
//編譯安裝
tar xzf libevent-2.1.8-stable.tar
.gzcd libevent-2.1.8-stable
./configure
make
make
install
//安裝
tar xzf tmux-2.3.tar
.gz
cd tmux-2.3
cflags="
-i/usr/local/include
" ldflags="
-l//usr/local/lib
" ./configure
make
make
install
//建立軟連線
32位系統: ln -s /usr/local/lib/libevent-2.1.so.6 /usr/lib/libevent-2.1.so.6
64位系統:
ln -s /usr/local/lib/libevent-2.1.so.6 /usr/lib64/libevent-2.1.so.6
修改yum源
Centos 7 最小化安裝後基本配置
1 安裝ifconfig yum install y net tools yum y install vim yum y install git yum y install lrzsz yum install y wget firewall是centos7裡面的新的防火牆命令,它底層還是使用 ipt...
CentOS 7最小化安裝配置
檢視網路狀態,因為ifconfig沒有安裝,所以使用如下命令 ip addr進入目錄 cd etc sysconfig network scripts編輯網絡卡檔案 vi ifcfg eno16777736修改或增加如下內容 bootproto static dhcp改為static 修改 onbo...
CentOS7 最小化安裝完配置
防火牆 yum install y net tools systemctl stop firewalld systemctl disable firewalld.service yum install y iptables services systemctl restart iptables.se...