About IT - Infrastructure
Docs about IT infra
Let’s get started to explore IT infrastructure knowledge it’s that simple
Reset - Mysql - password-ubuntu
Reset MySQL root password in ubuntu edit config file by sudo gedit /etc/mysql/mysql.conf.d/mysqld.cnf in [mysqld] section, below ‘skip-external-locking’ add line skip-grant-tables restart MySQL sudo systemctl restart mysql enter mysql mysql -u root -p switch to mysql database use mysql; change root password to ‘passwd’: UPDATE mysql.user SET authentication_string=password('passwd') WHERE User='root' AND Host ='localhost'; update plugin field: UPDATE user SET plugin="mysql_native_password"; (plugin field is used to authenticate user, if it is empty, server will use built-in method)
Set - Env - JDK - Maven - ubuntu
Set env for JDK and Maven ubuntu Edit /etc/profile sudo vi /etc/profile add below lines to the bottom #set maven env export M2_HOME=/usr/local/apache-maven-3.6.1 export CLASSPATH=$CLASSPATH:$M2_HOME/lib export PATH=$PATH:$M2_HOME/bin #set Java environment export JAVA_HOME=/usr/lib/jdk1.8.0_191 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH activate the changes source /etc/profile /etc/profile Edit bashrc sudo vi ~/.bashrc add below lines in the front #set maven env export M2_HOME=/usr/local/apache-maven-3.
k8s - CentOS7 - Installation
kubernetes installation on Centos7 介绍下环境,4个节点的情况如下: 节点名 IP OS 安装软件 Master 10.211.55.6 Centos7 kubeadm,kubelet,kubectl,docker Node1 10.211.55.7 Centos7 kubeadm,kubelet,kubectl,docker Node2 10.211.55.8 Centos7 kubeadm,kubelet,kubectl,docker Node3 10.211.55.9 Centos7 kubeadm,kubelet,kubectl,docker 其中kubeadm,kubectl,kubelet的版本为v1.10.0,docker的版本为1.13.1。 一.各节点前期的准备工作: 1.关闭并停用防火墙 systemctl stop firewalld.service systemctl disable firewalld.service 2.永久关闭SELinux vim /etc/selinux/config SELINUX=disabled 3.同步集群系统时间 yum -y install ntp *ntpdate 0.*asia.pool.ntp.org 4.重启机器 reboot