02.linux基础环境配置

1.安装,避免ifconfig执行不好使

yum install net-tools

2.安装以后执行ifconfig 获取ip地址,然后通过ip地址在外面登陆

###mac登陆方式
ssh [email protected]

连接linux以后,执行一下命令

service iptables stop
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service
#关闭selinux
vi /etc/sysconfig/selinux
#改为disabled
SELINUX=disabled

#安装基础扩展
yum -y groupinstall "Development Tools"
yum -y install vim wget gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel libxml2 libxml2-devel ncurses-devel perl-Data-Dumper boost boost-doc boost-devel telnet yum-utils net-tools bzip2 bzip2-devel curl-devel libjpeg-devel libpng libpng-devel freetype-devel  libxslt libxslt-devel expect gcc*
yum install -y autoconf automake m4 libtool make cmake bison gcc
yum -y install glibc.i686
yum -y install libncurses.so.5
yum -y install libaio.so.1
yum -y install libz.so.1
yum -y install pcre-devel

#设置系统时区
mv /etc/localtime /etc/localtime.bak  
ln -s /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime  
date

你可能感兴趣的:(02.linux基础环境配置)