MYSQL 5.8 on Centos 7

systemd is now used to look after mySQL instead of mysqld_safe (which is why you get the -bash: mysqld_safe: command not found error – it’s not installed) The user table structure has changed. So to reset the root password, you still start mySQL with –skip-grant-tables options and update the user table, but how you do it has changed. 1. Stop mysql: systemctl stop mysqld 2. Set […]

Read more
docker swarm

Docker Engine Starting from version 1.12.0, Docker Swarm is integrated natively. The operation of the cluster can be directly controlled by the docker service command, which is very convenient and the operation process is greatly simplified. Docker Swarm For the average developer, the biggest advantage lies in the native support of the load balancing mechanism, which […]

Read more
Docker import and export mirrors

Docker Import and Export Image Docker allows you to export the image to a local file. The export command is docker save. First, let’s look at the use of this command. [plain] view plain copy $ sudo docker save –help You can see that the docker save command is very simple to use, with a […]

Read more
Docker centos 6.9

Docker requires a Linux kernel version of 3.8 or higher, you must check the kernel version of the host operating system before installation. Otherwise, if the kernel is lower than 3.8, Docker can be successfully installed, but after entering Docker, it will automatically exit. . 1. Download and install CentOS 6.9 CentOS 6 series, the latest version […]

Read more
Docker creates Tomcat/Weblogic cluster

Install Tomcat image Prepare the required jdk, tomcat and other software into the home directory, start a container docker run -t -i -v /home:/opt/data -name mk_tomcat Ubuntu /bin/bash This command mounts the local home directory to the /opt/data directory of the container. If the container directory does not exist, it will be automatically created. The next step is […]

Read more
Kubernetes basic concepts study notes

Kubernetes (often called K8s) is an open source system for automatically deploying, extending, and managing containerized applications, and is an “open source version” of Google’s internal tools, Borg. Kubernetes is currently recognized as the most advanced container cluster management tool. After the release of version 1.0, Kubernetes has been developing at a faster speed and […]

Read more
Ansible-palybooks

Ansible-palybooks root@controller:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/root/.ssh/id_rsa. Your public key has been saved in /home/root/.ssh/id_rsa.pub. The key fingerprint is: 33:b8:4d:8f:95:bc:ed:1a:12:f3:6c:09:9f:52:23:d0 root@controller The key’s randomart image is: +–[ RSA […]

Read more
Managing files in ansible

Managing files in ansible [root@controller ~]$ ansible localhost –list-hosts hosts (1): localhost ——————————————- [root@controller ~]$ vim file.yaml — – name: creating a file hosts: localhost tasks: – file: path: /home/root/sample state: touch owner: root group: root mode: 0755 … ——————————————- [root@controller ~]$ ansible-playbook –syntax-check file.yaml playbook: file.yaml —————————————- [root@controller ~]$ ansible-playbook -C file.yaml PLAY [creating […]

Read more
ansible vault

root@controller ~]# ansible-vault create mohan.yml Vault password: [root@controller ~]# cat mohan.yml $ANSIBLE_VAULT;1.1;AES256 38623235633039636166356162393064363936303461306536386237663032383932656164633131 6132633132376266313863366164396535386539666562310a306562383834343431633536353332 63303935623030393261373030343366323361653238306531356434333538613236303738653730 3935313536396361640a343836366434613638316538333165366161306166396564353635383831 30636536366462646362373432396234383432376437633764616239393938366137 [root@controller ~]# ansible-vault view mohan.yml Vault password: hai how are you [root@controller ~]# ansible-vault edit mohan.yml Vault password: [root@controller ~]# ansible-vault rekey mohan.yml Vault password: New Vault password: Confirm New Vault password: Rekey successful [root@controller ~]# ansible-playbook mohan.yml […]

Read more
JINJA2 templates in ansible

JINJA2 templates in ansible [root@workstation ~]# ansible -m ping all 192.168.1.23 | SUCCESS => { “changed”: false, “ping”: “pong” } 192.168.1.22 | SUCCESS => { “changed”: false, “ping”: “pong” } ========================================= [root@workstation ~]# vim motd.j2 this is {{ ansible_hostname }}. today’s date is {{ ansible_date_time.date }} you can ask {{ system_owner }} for access ========================================== […]

Read more

Hit Counter provided by dental implants orange county