Auto setting Oracle installation environment ( like Oracle-database-preinstall.rpm ) (shell script)

記錄 script 內容

0. Check yum package will install from internet or cdrom

Example:
# yum search ksh

1. 腳本內容 ( 依需求先編輯 init params 部份,再覆蓋 oracle-preinstall.sh 的 init params 區域 )

##########################
##init params begin
##########################
_DEFAULTUSERPWD=oracle
_ORACLE_SID=orcl1
_ORACLE_UNQNAME=orcl
_ORACLE_HOSTNAME=`hostname | cut -d "." -f1`
_ORACLE_BASE=/u01/app/oracle
# $ORACLE_BASE not add here
# _ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
_ORACLE_HOME=product/19.0.0/dbhome_1
_GRID_SID=+ASM1
_GRID_BASE=/u01/app/grid
_GRID_HOME=/u01/app/19.0.0
##########################
##init params end
##########################
# vim oracle-preinstall.sh
#!/bin/sh

#########################################################
# Create by Johnson 2021.11.18
# This script create like by Oracle-preinstall-xx.rpm
# shell script to run for Redhat 7; CentOS 7; Oracle Linux 7; above.
#
# Scirpt follow:
# 0. Install rpm library
# 1. Create Groups dba,backupdba,dgdba,racdba...etc.
# 2. Create User oracle | grid
# 3. Setting kernel params is oracle recommended value
# 4. Config security limit
# 5. Config grud numa=off transparent_hugepage=never
# 6. Check Network (NOZEROCONF=yes)
# 7. Check selinux (Disable | Permissive)
# 8. Check Firewall (inactive)
# 9. Check avahi-daemon Service (inactive)
# 10.Config SSH X11 Setting
#########################################################

if [ ! `whoami` = 'root' ]; then
echo "This script must be run as root."
echo "Exit Script...."
exit 1
fi

##########################
##init params begin
##########################
_DEFAULTUSERPWD=oracle
_ORACLE_SID=orcl1
_ORACLE_UNQNAME=orcl
_ORACLE_HOSTNAME=`hostname | cut -d "." -f1`
_ORACLE_BASE=/u01/app/oracle
# $ORACLE_BASE not add here
# _ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
_ORACLE_HOME=product/19.0.0/dbhome_1
_GRID_SID=+ASM1
_GRID_BASE=/u01/app/grid
_GRID_HOME=/u01/app/19.0.0
##########################
##init params end
##########################


while ! [[ $install_mode == "RAC" || $install_mode == "Database" ]]
do
  echo "Choose an Preinstallation mode ? (RAC or Database)"
  echo "RAC: oracle & grid"
  echo "Database: oracle"
  read install_mode
done


##########################
## Install rpm from yum
##########################
_rpmlist="compat-libcap1 glibc-devel ksh libaio-devel libstdc++-devel unzip perl perl-Data-Dumper perl-Digest-MD5 compat-libstdc++-33 xorg-x11-xauth xorg-x11-utils bind-utils nfs-utils smartmontools psmisc sysstat mailx gcc-c++"
yum install -y $_rpmlist
for _rpmname in $_rpmlist
do
if rpm -q $_rpmname; then
  echo ""
else
  echo ""
fi
done

if ! rpm -q compat-libstdc++-33;then
  echo "rpm compat-libstdc++-33 not available on RHEL from yum."
  echo "You need to download rpm compat-libstdc++-33 to install manual."
  echo "Enter to contiue..."
  read enter_line
fi

_rpmlistSP="net-tools bc vim"
echo "Do you want to install others ? (Y:yes N:no)"
echo $_rpmlistSP
read _response_line
_response_line=${_response_line,,}
if [[ $_response_line == "y" || $_response_line == "yes" ]]; then
  yum install -y $_rpmlistSP
  for _rpmname in $_rpmlistSP
  do
  if rpm -q $_rpmname; then
    echo ""
  else
    echo ""
  fi
  done
fi


##########################
## Check Group & User
##########################
function ckGroupName () {
  for _GN in $*
  do
    _groupName=$(echo $_GN|cut -d $'^' -f 1)
    _groupGID=$(echo $_GN|cut -d $'^' -f 2)

    ck_gn=`cat /etc/group | grep "^$_groupName:" | wc -l`
    if [ $ck_gn == 1 ]; then
       echo "Group $groupName - Already exists. Not creating again." 
    else
       echo "Group $_groupGID $_groupName - creating."
       groupadd -g $_groupGID $_groupName
    fi

  done
}

function ckUser () {
  for _U in $*
  do
    _Username=$(echo $_U|cut -d $'^' -f 1)
    _UID=$(echo $_U|cut -d $'^' -f 2)
    _UGroups=$(echo $_U|cut -d $'^' -f 3)

    ck_u=`cat /etc/passwd | grep "^_Username:" | wc -l`
    if [ $ck_u == 1 ]; then
      echo "User $_Username - already exists. Not creating again."
    else
      echo "Adding User $_Username with user id $_UID, initial login group oinstall, supplementary groups $_UGroups"
      useradd -u $_UID -g oinstall -G $_UGroups -m $_Username
      echo $_Username:$_DEFAULTUSERPWD | chpasswd
    fi

  done
}

function cfProfile () {
  for _U in $*
  do
    if [ $_U == "oracle" ];then
      echo "Config oracle /home/oracle/.bash_profile"
      if ! grep "ORACLE_BASE" /home/oracle/.bash_profile >/dev/null 2>&1; then
        cat >> /home/oracle/.bash_profile << EOF
ORACLE_HOSTNAME=${_ORACLE_HOSTNAME}; export ORACLE_HOSTNAME
ORACLE_UNQNAME=${_ORACLE_UNQNAME}; export ORACLE_UNQNAME
ORACLE_SID=${_ORACLE_SID}; export ORACLE_SID
ORACLE_BASE=${_ORACLE_BASE}; export ORACLE_BASE
ORACLE_HOME=\$ORACLE_BASE/${_ORACLE_HOME}; export ORACLE_HOME
PATH=/usr/sbin:\$PATH; export PATH
PATH=\$PATH:\$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
EOF
      fi
    fi

    if [ $_U == "grid" ];then
      echo "Config grid /home/grid/.bash_profile"
      if ! grep "ORACLE_BASE" /home/grid/.bash_profile >/dev/null 2>&1; then
        cat >> /home/grid/.bash_profile << EOF
ORACLE_HOSTNAME=${_ORACLE_HOSTNAME}; export ORACLE_HOSTNAME
ORACLE_SID=${_GRID_SID}; export ORACLE_SID
ORACLE_BASE=${_GRID_BASE}; export ORACLE_BASE
ORACLE_HOME=${_GRID_HOME}; export ORACLE_HOME
PATH=/usr/sbin:\$PATH; export PATH
PATH=\$PATH:\$ORACLE_HOME/bin; export PATH
LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
EOF
      fi
    fi
  done
}

function crDir () {
  for _U in $*
  do
    if [ $_U == "oracle" ]; then
        echo "Create Oracle $_ORACLE_BASE/$_ORACLE_HOME Directory"
        mkdir -p $_ORACLE_BASE/$_ORACLE_HOME
        chown oracle.oinstall -R $_ORACLE_BASE
        chmod 775 /$(echo $_ORACLE_BASE | cut -d "/" -f2)
        chown oracle.oinstall -R /$(echo $_ORACLE_BASE | cut -d "/" -f2)
    fi

    if [ $_U == "grid" ]; then
       echo "Create Grid $_GRID_HOME & $_GRID_BASE"
       mkdir -p $_GRID_BASE
       chown grid.oinstall $_GRID_BASE
       mkdir -p $_GRID_HOME
       chown grid.oinstall $_GRID_HOME
    fi
  done
}

if [ $install_mode == "Database" ]
then
  #database only
  ckGroupName "oinstall^54321 dba^54322 oper^54323 backupdba^54324 dgdba^54325 kmdba^54326 racdba^54330"
  ckUser "oracle^54321^dba,oper,backupdba,dgdba,kmdba,racdba"
  cfProfile "oracle"
  crDir "oracle"
elif [ $install_mode == "RAC" ]
then
  #rac only
  ckGroupName "oinstall^54321 dba^54322 oper^54323 backupdba^54324 dgdba^54325 kmdba^54326 asmdba^54327 asmoper^54328 asmadmin^54329 racdba^54330"
  ckUser "oracle^54321^dba,oper,backupdba,dgdba,kmdba,racdba,asmdba,asmadmin grid^54322^dba,asmdba,asmoper,asmadmin,racdba"
  cfProfile "oracle grid"
  crDir "oracle grid"
fi


##########################
## Check Kernel Parameter
##########################
function ckKernel () {
  _Newpath=/etc/sysctl.d/99-oracle-preinstall-sysctl.conf

  _kerName=$(echo $*|cut -d $'=' -f 1)
  _kerValue=$(echo $*|cut -d $'=' -f 2)

  echo "Setting kernel parameters - setting for $_kerName is $_kerValue"
  echo "# oracle-preinstall setting for $_kerName is $_kerValue" >> $_Newpath
  echo "$_kerName = $_kerValue" >> $_Newpath
  echo "" >> $_Newpath
  echo "Adding $_kerName = $_kerValue"
}

if [ -f /etc/sysctl.d/99-oracle-preinstall-sysctl.conf ]; then
  rm -f /etc/sysctl.d/99-oracle-preinstall-sysctl.conf
fi

echo "Saving a copy of the initial sysctl.conf"
if [ ! -f /etc/99-initial-sysctl.conf ]; then
  cp /etc/sysctl.conf /etc/99-initial-sysctl.conf
fi
ckKernel "fs.file-max=6815744"
ckKernel "kernel.sem=250 32000 100 128"
ckKernel "kernel.shmmni=4096"
ckKernel "kernel.shmall=1073741824"
ckKernel "kernel.shmmax=4398046511104"
ckKernel "kernel.panic_on_oops=1"
ckKernel "net.core.rmem_default=1048576"
ckKernel "net.core.rmem_max=4194304"
ckKernel "net.core.wmem_default=262144"
ckKernel "net.core.wmem_max=1048576"
ckKernel "net.ipv4.conf.all.rp_filter=2"
ckKernel "net.ipv4.conf.default.rp_filter=2"
ckKernel "fs.aio-max-nr=1048576"
ckKernel "net.ipv4.ip_local_port_range=9000 65500"

echo "Alter file /etc/sysctl.conf"
echo "Save a copy of the current file in /etc/sysctl.d/99-oracle-preinstall-sysctl.conf"
cp /etc/sysctl.d/99-oracle-preinstall-sysctl.conf /etc/sysctl.conf
sysctl -p
echo "Verification of kernel prameters."


##########################
## security limit
##########################
function ckSecurity () {
  _Newpath=/etc/security/limits.d/oracle-preinstall.conf

  _name=$(echo $*|cut -d $'^' -f 1)
  _hs=$(echo $*|cut -d $'^' -f 2)
  _nsmd=$(echo $*|cut -d $'^' -f 3)
  _value=$(echo $*|cut -d $'^' -f 4)

  echo "# oracle-preinstall setting for $_hs $_nsmd is $_value" >> $_Newpath
  echo "$_name $_hs $_nsmd $_value" >> $_Newpath
  echo "" >> $_Newpath
}

function ckAddlimit () {
  for _User in $*
  do
    ckSecurity "$_User^soft^nofile^1024"
    ckSecurity "$_User^hard^nofile^65536"
    ckSecurity "$_User^soft^noproc^16384"
    ckSecurity "$_User^hard^noproc^16384"
    ckSecurity "$_User^soft^stack^10240"
    ckSecurity "$_User^hard^stack^32768"
    ckSecurity "$_User^soft^data^unlimited"
    ckSecurity "$_User^hard^data^unlimited"

    #limit is maximum of 128GB on x86_64 or 3GB on x86 OR 90 % of RAM
    _getPhysicalMem=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
    # Memory <= 3GB
    if [ $_getPhysicalMem -le 3145728 ]
    then
      _setMemlock=3145728
    # Memory > 3GB and Memory <= 128GB
    elif [ $_getPhysicalMem -gt 3145728 ] && [ $_getPhysicalMem -le 134217728 ]
    then
      _setMemlock=$_getPhysicalMem*0.9
    # Memory >= 128GB
    elif [ $_getPhysicalMem -ge 134217728 ]
    then
      _setMemlock=134217728
    fi
    ckSecurity "$_User^soft^memlock^$_setMemlock"
    ckSecurity "$_User^hard^memlock^$_setMemlock"

  done
}

if [ -f /etc/security/limits.d/oracle-preinstall.conf ]; then
  rm -f /etc/security/limits.d/oracle-preinstall.conf
fi

if [ $install_mode == "Database" ]
then
  #database only
  ckAddlimit "oracle"
elif [ $install_mode == "RAC" ]
then
  #rac only
  ckAddlimit "oracle grid"
fi


##########################
## edit Grub numa=off transparent_hugepage=never
##########################
function editGrub () {
  if [ ! -f /etc/default/grub-oracle-preinstall.orabackup ]; then
    echo "Saveing a copy of /etc/default/grub"
    cp /etc/default/grub /etc/default/grub-oracle-preinstall.orabackup
  fi

  echo "Verifying kernel boot parameters as per Oracle recommendations..."
  _cknumaoff=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | grep "numa=off" | wc -l`
  if [ $_cknumaoff == 1 ]; then
    echo "Verify boot params: numa=off"
  else
    _oldparam=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | sed "s/GRUB_CMDLINE_LINUX=//"`
    echo "old boot params: " $_oldparam
    _newparam=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | sed "s/GRUB_CMDLINE_LINUX=//" | sed 's/^GRUB_CMDLINE_LINUX="[^"]*/& numa=off/'`
    echo "new boot params: " $_newparam
    sed -i 's/^GRUB_CMDLINE_LINUX="[^"]*/& numa=off/' /etc/default/grub
  fi

  _ckthnever=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | grep "transparent_hugepage=never" | wc -l`
  if [ $_ckthnever == 1 ]; then
    echo "Verify boot params: transparent_hugepage=never"
  else
    _oldparam=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | sed "s/GRUB_CMDLINE_LINUX=//"`
    echo "old boot params: " $_oldparam
    _newparam=`cat /etc/default/grub | grep GRUB_CMDLINE_LINUX | sed "s/GRUB_CMDLINE_LINUX=//" | sed 's/^GRUB_CMDLINE_LINUX="[^"]*/& transparent_hugepage=never/'`
    echo "new boot params: " $_newparam
    sed -i 's/^GRUB_CMDLINE_LINUX="[^"]*/& transparent_hugepage=never/' /etc/default/grub
  fi

  echo "Generating grub configuration file ..."
  if [ -f /boot/grub2/grub.cfg ]
  then
    echo "mkconfig BIOS-based machines."
    cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orabackup
    grub2-mkconfig -o /boot/grub2/grub.cfg
  elif [ -f /boot/efi/EFI/*/grub.cfg ]
  then
    echo "mkconfig UEFI-based machines." 
    filepath=`ls /boot/efi/EFI/*/grub.cfg`
    cp $filepath $filepath.orabackup
    grub2-mkconfig -o $filepath
  fi
}

editGrub


##########################
## check Network NOZEROCONF
##########################
function editNetworkNZ () {
  _ckNetworkNZ=`cat /etc/sysconfig/network | grep NOZEROCONF | wc -l`
  if [ $_ckNetworkNZ -ge 1 ]; then
    echo "Parameter NOZEROCONF exists. Not doing anything."
  else
    echo "# oracle-preinstall : Add NOZEROCONF=yes" >> /etc/sysconfig/network
    echo "NOZEROCONF=yes" >> /etc/sysconfig/network
    echo "Successfully added parameter NOZEROCONF to /etc/sysconfig/network"
  fi
}

editNetworkNZ


##########################
## check selinux config
##########################
function ckSelinux () {
  _ckTenforce=`getenforce | awk '{print tolower($0)}'`
  if [ $_ckTenforce == "enforcing" ]
  then
    if [ ! -f /etc/selinux/config.orabackup ]; then
      cp /etc/selinux/config /etc/selinux/config.orabackup
    fi
    sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/gi' /etc/selinux/config
    setenforce 0
    echo "Config selinux to permissive...Successful..."
  elif [[ $_ckTenforce == "disable" || $_ckTenforce == "permissive" ]]
  then
    echo "selinux config is : " $_ckTenforce ". Not doing anything."
  fi
}

ckSelinux


##########################
## check firewall status
##########################
function ckFirewall () {
  _ckFirewall=`systemctl status firewalld`
  if [ ! $? == 0 ]; then
    echo "Firewall is $_ckFirewall. Not doing anything."
  else
    echo "Firewall stop..."
    systemctl stop firewalld.service
    echo "Firewall stop Successful."
    echo "Firewall disable..."
    systemctl disable firewalld.service
    echo "Firewall disable Successful."
  fi
}

ckFirewall


##########################
## check avahi-daemon status
##########################
function ckAvahi () {
  _ckAvahi=`systemctl status avahi-daemon.socket avahi-daemon.service`
  if [ ! $? == 0 ]; then
    echo "Avahi.service is not found or inactive. Not doing anything."
  else
    echo "avahi-daemon socket service stop..."
    systemctl mask avahi-daemon.socket avahi-daemon.service
    systemctl stop avahi-daemon.socket avahi-daemon.service
    systemctl disable avahi-daemon.socket avahi-daemon.service
    echo "avahi-daemon disable Successful."
  fi
}

ckAvahi


##########################
## check ssh X11
##########################
function ckSSH () {
  echo "Config SSH X11 sshd_config"
  sed -i 's/#X11Forwarding yes/X11Forwarding yes/g' /etc/ssh/sshd_config
  sed -i 's/#X11DisplayOffset 10/X11DisplayOffset 10/g' /etc/ssh/sshd_config
  sed -i 's/#X11UseLocalhost yes/X11UseLocalhost yes/g' /etc/ssh/sshd_config
  systemctl restart sshd
  echo "Config SSH X11 Successful."
}

ckSSH

##########################
## script end
##########################
echo "Script Run End........"
echo "Please Verify Environment Setting."

2. 執行方式 ( 輸入安裝環境 Database、RAC(含grid infrastructure) )

# sh oracle-preinstall.sh
Choose an Preinstallation mode ? (RAC or Database)
RAC: oracle & grid
Database: oracle
RAC
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.net
 * c7-media: 
 * extras: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
Package glibc-devel-2.17-325.el7_9.x86_64 already installed and latest version
Package ksh-20120801-142.el7.x86_64 already installed and latest version
Package libaio-devel-0.3.109-13.el7.x86_64 already installed and latest version
Package libstdc++-devel-4.8.5-44.el7.x86_64 already installed and latest version
Package unzip-6.0-22.el7_9.x86_64 already installed and latest version
Package 4:perl-5.16.3-299.el7_9.x86_64 already installed and latest version
Package perl-Data-Dumper-2.145-3.el7.x86_64 already installed and latest version
Package perl-Digest-MD5-2.52-3.el7.x86_64 already installed and latest version
Package compat-libstdc++-33-3.2.3-72.el7.x86_64 already installed and latest version
Nothing to do
compat-libcap1-1.10-7.el7.x86_64

glibc-devel-2.17-325.el7_9.x86_64

ksh-20120801-142.el7.x86_64

libaio-devel-0.3.109-13.el7.x86_64

libstdc++-devel-4.8.5-44.el7.x86_64

unzip-6.0-22.el7_9.x86_64

perl-5.16.3-299.el7_9.x86_64

perl-Data-Dumper-2.145-3.el7.x86_64

perl-Digest-MD5-2.52-3.el7.x86_64

compat-libstdc++-33-3.2.3-72.el7.x86_64

compat-libstdc++-33-3.2.3-72.el7.x86_64
Do you want to install others ? (Y:yes N:no)
xorg-x11-xauth xorg-x11-utils net-tools nfs-utils smartmontools psmisc sysstat bc bind-utils vim
n
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Group  - Already exists. Not creating again.
Adding User oracle with user id 54321, initial login group oinstall, supplementary groups dba,oper,backupdba,dgdba,kmdba,asmdba,racdba
useradd: user 'oracle' already exists
Adding User grid with user id 54322, initial login group oinstall, supplementary groups dba,asmdba,asmoper,asmadmin,racdba
useradd: user 'grid' already exists
Config oracle /home/oracle/.bash_profile
Config grid /home/grid/.bash_profile
Create Oracle /u01/app/oracle/product/19.0.0/dbhome_1 Directory
chown: cannot access '/u01/app/oracle': No such file or directory
Create Grid /u01/app/19.0.0 & /u01/app/grid
Saving a copy of the initial sysctl.conf
Setting kernel parameters - setting for fs.file-max is 6815744
Adding fs.file-max = 6815744
Setting kernel parameters - setting for kernel.sem is 250 32000 100 128
Adding kernel.sem = 250 32000 100 128
Setting kernel parameters - setting for kernel.shmmni is 4096
Adding kernel.shmmni = 4096
Setting kernel parameters - setting for kernel.shmall is 1073741824
Adding kernel.shmall = 1073741824
Setting kernel parameters - setting for kernel.shmmax is 4398046511104
Adding kernel.shmmax = 4398046511104
Setting kernel parameters - setting for kernel.panic_on_oops is 1
Adding kernel.panic_on_oops = 1
Setting kernel parameters - setting for net.core.rmem_default is 262144
Adding net.core.rmem_default = 262144
Setting kernel parameters - setting for net.core.rmem_max is 4194304
Adding net.core.rmem_max = 4194304
Setting kernel parameters - setting for net.core.wmem_default is 262144
Adding net.core.wmem_default = 262144
Setting kernel parameters - setting for net.core.wmem_max is 1048576
Adding net.core.wmem_max = 1048576
Setting kernel parameters - setting for net.ipv4.conf.all.rp_filter is 2
Adding net.ipv4.conf.all.rp_filter = 2
Setting kernel parameters - setting for net.ipv4.conf.default.rp_filter is 2
Adding net.ipv4.conf.default.rp_filter = 2
Setting kernel parameters - setting for fs.aio-max-nr is 1048576
Adding fs.aio-max-nr = 1048576
Setting kernel parameters - setting for net.ipv4.ip_local_port_range is 9000 65500
Adding net.ipv4.ip_local_port_range = 9000 65500
Alter file /etc/sysctl.conf
Save a copy of the current file in /etc/sysctl.d/99-oracle-preinstall-sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Verification of kernel prameters.
Verifying kernel boot parameters as per Oracle recommendations...
Verify boot params: numa=off
Verify boot params: transparent_hugepage=never
Generating grub configuration file ...
mkconfig BIOS-based machines.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1127.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1127.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-5dfc30f4652780408cbc5147d11e97c4
Found initrd image: /boot/initramfs-0-rescue-5dfc30f4652780408cbc5147d11e97c4.img
done
Parameter NOZEROCONF exists. Not doing anything.
selinux config is :  permissive . Not doing anything.
Firewall is ● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

Nov 22 16:38:05 test-db1.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Nov 22 16:38:06 test-db1.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
Nov 22 16:39:53 test-db1.localdomain systemd[1]: Stopping firewalld - dynamic firewall daemon...
Nov 22 16:39:54 test-db1.localdomain systemd[1]: Stopped firewalld - dynamic firewall daemon.. Not doing anything.
Unit avahi-daemon.socket could not be found.
Unit avahi-daemon.service could not be found.
Avahi.service is not found or inactive. Not doing anything.
Config SSH X11 sshd_config
Config SSH X11 Successful.
Script Run End........
Please Verify Environment Setting.

已轉向 blogger 記錄

https://slowlife-notes.blogspot.com