centos 7 : set multi gateway Hint2

vi /etc/sysconfig/network-scripts/ifcfg-eth0   IPV4_ROUTE_METRIC=202 IPV4_DNS_PRIORITY=202     vi /etc/sysconfig/network ip route add default via 222.222.222.193 dev eth1 table 201 ip route append default nexthop via 192.168.0.1 dev eth0   while ip rule delete table 201 2>/dev/null; do true; done while ip rule delete table 202 2>/dev/null; do true; done   ip rule add from 222.222.222.192/27 […]

Read More

centos 7 : oracle listener config & log Hint with /etc/hosts

# vi /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora ----------------------- LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))       (ADDRESS = (PROTOCOL = TCP)(HOST = owl)(PORT = 1521))     )   )   ADR_BASE_LISTENER = /home/oracle/app/oracle -----------------------   # vi /etc/hosts ----------------------- 127.0.0.1    owl -----------------------   […]

Read More

centos 7 : yum repos by iso file Hint

centos 7 : yum repos by iso file Hint   # mkdir /mnt/centos7   # mount -t iso9660 -o loop /db/install/CentOS-7/CentOS-7-x86_64-DVD-1804.iso /mnt/centos7   # /mnt/centos7   # cat /mnt/centos7/.discinfo    -----------------------------   1543162572.807980 7.6 x86_64   -----------------------------   # ls -al /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7   # vi /etc/yum.repos.d/owl.repo    -----------------------------   [owl] mediaid=1543162572.807980 name=owl baseurl=file:///mnt/centos7 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 enabled=1 […]

Read More

centos 7 : mrtg setup Hint

# yum -y install net-snmp net-snmp-utils mrtg   # vi /etc/snmp/snmpd.conf ----------------------- #com2sec notConfigUser  default       public   com2sec local     localhost       owl com2sec mynetwork 192.168.0.10      owl   group MyRWGroup  v2c        local group MyROGroup  v2c        mynetwork   view all    included  .1      […]

Read More

centos 7 : php5.4 oci8 setup Hit

# rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm # rpm -ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm # pecl download oci8-1.4.9.tgz # tar xvzf oci8-1.4.9.tgz # cd oci8-1.4.9 # phpize   if oracle server installed # ./configure    if oracle client installed # ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib # ln -s /usr/include/oracle/11.2/client64/ /usr/lib/oracle/11.2/client64/lib/include # make all # make test # make install   # cp modules/oci8.so /usr/lib64/httpd/modules/ […]

Read More