安装步骤

  • 开始安装 CentOS 7.4

    200

  • 安装语言选择:默认(English)

    201

  • 时区:亚洲(Asia)、上海(Shanghai),打开网络时间同步(Network Time);语言支持:添加简体中文;其它均为默认。

    202

  • 网络及主机名:输入主机名(Host name)为 oracle-19c

    203

  • 仅为 root 设置密码

    204

  • 开始安装 CentOS,初步完成后,点击 Reboot

    205

  • 检查 SSHD: systemctl status sshd

    206

  • dhcp client 设置,修改 /etc/sysconfig/network-scripts/ifcfg-enp0s3 中行 ONBOOT=yes

    209

  • static ip 设置,修改/etc/sysconfig/network-scripts/ifcfg-enp0s3, 增加

    1
    2
    3
    4
    5
    6
    7
    
    ONBOOT=yes
    BOOTPROTO=static
    IPADDR=192.168.1.10
    NETMASK=255.255.255.0
    GATEWAY=192.168.1.1
    DNS1=8.8.8.8
    DNS2=8.8.4.4
    
  • systemctl restart network ,重启网络,获取 IP 地址

  • ip address ,查看 IP 地址

    210

设置 PuTTY

  • 测试连接

    260

  • 关机

    261

Firefall

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
systemctl start firewalld

firewall-cmd --permanent --zone=public --add-rich-rule="rule family=\"ipv4\" source address=\"xxx.xxx.xxx.xxx\" port protocol=tcp port=22 accept"
firewall-cmd --permanent --zone=public --add-rich-rule="rule family=\"ipv4\" source address=\"xxx.xxx.xxx.xxx\" port protocol=udp port=53 accept"

firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent

firewall-cmd --reload # reload rules

firewall-cmd --list-all #  get all configurations
firewall-cmd --state # Check the firewall status.
firewall-cmd --get-services # view the default available services:

Yum

1
2
3
yum history # View Historical Installation Data
yum list installed # Check Installed Packages
yum history info foo

hostname

1
hostnamectl set-hostname centos7

Documents