美文网首页
02.linux基础环境配置

02.linux基础环境配置

作者: 欣博客 | 来源:发表于2020-05-11 17:02 被阅读0次

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

    yum install net-tools
    

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

    ###mac登陆方式
    ssh root@192.168.49.169
    

    连接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基础环境配置

          本文链接:https://www.haomeiwen.com/subject/bxtpnhtx.html