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 […]
T/s, B/s, bps for 64bit calculation Hint
In case 64bits per Transfer computer 1T/s = 1Transfer per second 1B/s = 1Byte per second 1bps = 1bit per second 1Byte = 8bits 1T = 8Bytes = 64bits 1T/s = 8B/s = 64bps Memory DDR4 2400Mhz = 2400MT/s or dual = 4800MT/s 2400MT/s = 2.4GT/s = 8Bytes * 2.4GT/s = 19.2GB/s = 64bits […]
centos 7 : network device Hint
# dmesg | grep alx # nmcli dev show # lspci -nn | grep 0200 # cat /proc/net/dev # ethtool -i enp8s0 # ethtool enp8s0 # lshw -C network # lsmod
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 ----------------------- […]
centos 7 : yum cache reset Hint
# yum clean packages # yum clean metadata # yum clean dbcache # yum clean all # yum clean makecache
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 […]
apache : proxy VirtualHost Hint
<VirtualHost *:80> ProxyPreserveHost On ProxyRequests Off ProxyVia Off ServerName www.mydomain.com ProxyPass / http://192.168.0.101:80/ ProxyPassReverse / http://192.168.0.101:80/ </VirtualHost>
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 […]
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/ […]
centos 7 : harddisk speed benchmark Hint : rsync, hdparm
sync; dd if=/dev/zero of=tmp4bench bs=1M count=1024; dd if=tmp4bench of=/dev/zero bs=1M count=1024; rm -f tmp4bench ; sync hdparm -Tt /dev/sda