Posts

How to install mysql57 community

https://www.mysqltutorial.org/install-mysql-centos/ # yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm # yum install mysql-community-server # grep 'A temporary password' /var/log/mysqld.log |tail -1 # mysql_secure_installation # mysql -u root -p

How to install oci8 in Centos7 and Ubuntu

OCI8 Installation. https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html  # yum install php-devel systemtap-sdt-devel php-pear # yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm # ldconfig # export PHP_DTRACE=yes # pecl install oci8-2.2.0 downloading oci8-2.2.0.tgz ... Starting to download oci8-2.2.0.tgz (196,449 bytes) .........................................done: 196,449 bytes 11 source files, building running: phpize Configuring for: PHP Api Version:         20190902 Zend Module Api No:      20190902 Zend Extension Api No:   320190902 Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : Enter ----- ------ ------ Build complete. Don't forget t

How to Create CoreDNS in Linux

[root@example ~]#     wget  https://github.com/coredns/ coredns/releases/download/v1. 11.1/coredns_1.11.1_linux_ amd64.tgz [root@example ~]#   tar -xvf coredns_1.11.1_linux_amd64.tgz [root@example ~]#   mkdir /opt/CoreDNS [root@example ~]#   mv coredns /opt/CoreDNS [root@example ~]#   cd /opt/CoreDNS [root@example  CoreDNS  ]#  vim  corefile  raju.com {           file db.raju.com       } rajeev.com {       file db.rajeev.com } [root@example  CoreDNS  ]#   vim  db.raju.com $ORIGIN raju.com . @    3600  IN SOA ns1.raju.com . root.raju.com.  (                                 2017042745 ; serial                                 7200       ; refresh (2 hours)                                 3600       ; retry (1 hour)                                 1209600    ; expire (2 weeks)                                 3600       ; minimum (1 hour)                                 ) 3600      IN NS   ns1.raju.com. @             IN A      192.168.122.90 host1     IN A     192.168.122.91 ns1        IN A

NAGIOS CLUSTER DOC

                              NAGIOS CLUSTER DOC =================================================== I have using RHEL6.4 64 Bit Machines IP 192.168.0.100  Name Node1.example.com IP 192.168.0.101  Name Node2.example.com IP 192.168.0.200 (Virtual IP) #yum install corosync pacemaker pcs resource-agents (Local repo) # wget -c http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/x86_64/crmsh-2.1-1.6.x86_64.rpm # wget -c http://pkgs.repoforge.org/pssh/pssh-2.0-1.el6.rf.noarch.rpm # rpm -ivh pssh-2.0-1.el6.rf.noarch.rpm # rpm -ivh crmsh-2.1-1.6.x86_64.rpm # yum  install crmsh-2.1-1.6.x86_64.rpm 2. Configure host file both Node ( Node1 & Node2 ) # vim /etc/hosts ( NODE1 Machine) 192.168.0.100  Node1.example.com  Node1 192.168.0.101  Node2.example.com  Node2 # vim /etc/hosts  ( NODE2 Machine ) 192.168.0.100  Node1.example.com  Node1 192.168.0.101  Node2.example.com  Node2 3. Configure httpd for testing  both Node ( Node1 & Node2 ) # vim /etc/htt

How to Create or Configure iSCSI Server and Clinet

Server: server.example.com IP Address: 192.168.122.246 OS: CentOS 7.9 Client: client.example.com IP Address: 192.168.122.245 Server: [root@server ~]# pvcreate /dev/vdb [root@server ~]# vgcreate newvg /dev/vdb [root@server ~]#  lvcreate -L 10G -n iscsi newvg [root@server ~]# yum install targetcli -y [root@server ~]# targetcli > cd /backstores/block /backstores/block> create iscsi_disk1 /dev/newvg/iscsi Created block storage object iscsi_disk1 using /dev/newvg/iscsi. /backstores/block> cd /iscsi /iscsi> create iqn.2016-02.local.cass2.server:disk1 Created target iqn.2016-02.local.cass2.server:disk1. Created TPG 1. Global pref auto_add_default_portal=true Created default portal listening on all IPs (0.0.0.0), port 3260. /iscsi> cd /iscsi/iqn.2016-02.local.cass2.server:disk1/tpg1/acls  /iscsi/iqn.20...sk1/tpg1/acls> create iqn.2016-02.local.cass2.server:cass1 Created Node ACL for iqn.2016-02.local.cass2.server:cass1 /iscsi/iqn.20...sk1/tpg1/acls> cd /iscsi/iqn.2016-02.

How TO Create Cassandra Cluster

IP 192.168.122.71 node1.example.com IP 192.168.122.244 node2.example.com IP 192.168.122.32 node3.example.com # cat /etc/sysconfig/selinux ( All Nodes ) # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted # systemctl stop firewalld ( All Nodes ) # systemctl disable firewalld ( All Nodes ) # vim /etc/yum.repos.d/cassandra.repo ( All Nodes ) [cassandra] name=Apache Cassandra baseurl=https://www.apache.org/dist/cassandra/redhat/311x/ gpgcheck=1 repo_gpgcheck=

How to Create Yum Server and Client

 [root@Apache ~]# mount /dev/sr0 /mnt/ mount: /dev/sr0 is write-protected, mounting read-only [root@Apache ~]# ls /mnt/ CentOS_BuildTag  EFI  EULA  GPL  images  isolinux  LiveOS  Packages  repodata  RPM-GPG-KEY-CentOS-7  RPM-GPG-KEY-CentOS-Testing-7  TRANS.TBL   [root@Apache ~]# vim /etc/yum.repos.d/yum.repo [server] name= server baseurl=file:///mnt gpgcheck=0 enable=1     [root@Apache ~]# yum clean all Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Cleaning repos: server Cleaning up everything Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos Cleaning up list of fastest mirrors   [root@Apache ~]# yum repolist Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-man