zoukankan      html  css  js  c++  java
  • centos7最小化安装需安装

    centos7最小化安装需安装

    1.查看ip地址并更改计算机名称
    ip a
    ip addr
    ip address show
    hostnamectl set-hostname kht127
    2.安装vim和wget
    yum install -y vim
    yum install -y wget
    3.使用ifconfig查看ip地址必须命令安装
    yum provides ifconfig
    yum install -y net-tools
    4.CentOS 7关闭SELinux
    查看状态
    [root@localhost ~]# getenforce
    Enforcing
    临时关闭
    [root@localhost ~]# setenforce 0
    [root@localhost ~]# getenforce
    Permissive
    ##设置SELinux 成为permissive模式
    ##setenforce 1 设置SELinux 成为enforcing模式
    永久关闭vim /etc/selinux/config
    将SELINUX=enforcing改为SELINUX=disabled
    设置后需要重启才能生效
    5.配置静态ip,参考http://www.mamicode.com/info-detail-1748320.html
    IPADDR=192.168.2.127
    NETMASK=255.255.255.0
    GATEWAY=192.168.2.2
    DNS1=8.8.8.8
    DNS2=114.114.114.114
    BROADCAST=192.168.2.255
    6.防火墙基本命令
    systemctl unmask firewalld                    #执行命令,即可实现取消服务的锁定
    systemctl mask firewalld                       # 下次需要锁定该服务时执行
    systemctl start firewalld.service               #启动防火墙  
    systemctl stop firewalld.service                #停止防火墙  
    systemctl reloadt firewalld.service             #重载配置
    systemctl restart firewalld.service             #重启服务
    systemctl status firewalld.service              #显示服务的状态
    systemctl enable firewalld.service              #在开机时启用服务
    systemctl disable firewalld.service             #在开机时禁用服务
    systemctl is-enabled firewalld.service          #查看服务是否开机启动
    systemctl list-unit-files|grep enabled          #查看已启动的服务列表
    systemctl --failed                                     #查看启动失败的服务列表
    7.安装jdk,参考网址https://www.cnblogs.com/116970u/p/10400436.html
    8.安装系统默认jdk,简易性安装:yum install java-devel
    
  • 相关阅读:
    替换Srun3000解决掉网问题
    了解Equals所发生的事情
    WPF自定义TextBox及ScrollViewer
    自制多类编码转换工具
    .NET4.5之自制多LRC转SRT小工具
    JAVA_list总结
    记一次线程Timer导致的线程安全问题修正
    JAVA_匿名内部类
    JAVA_map总结
    JAVA_闭包
  • 原文地址:https://www.cnblogs.com/khtt/p/15219825.html
Copyright © 2011-2022 走看看