Using Docker to build GitLab services
1. Installing the operating system
Download the latest system: CentOS 7.7 centos-7-x86_-dvd-1908.iso
2. Set up network, adopt NAT, virtual machine fixed IP
vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL ...
Posted by Daisy Cutter on Thu, 06 Feb 2020 22:47:12 -0800
Ansible installation and module management (the most complete operation, can follow
1, Ansible installation
Environmental preparation
Management end: CentOS 7-2 192.168.18.147Managed end 1: CentOS 7-3 192.168.18.128Managed end 2: CentOS 7-4 192.168.18.148
Management side:
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
[root@localhost ~]# yum install epel-release -y
[root@localhost ~]# ...
Posted by santhosh_89 on Mon, 03 Feb 2020 07:34:46 -0800
Building MySQL Replication Cluster High Availability Architecture Based on MHA
Introduction to MHA architecture
MHA is the abbreviation of Master High Availability. It is a relatively mature solution for MySQL high availability at present. Its core is a set of scripts written in perl language. It is an excellent set of high availability software for failover and master-slave promotion in MySQL high availability environme ...
Posted by xtopolis on Sat, 01 Feb 2020 08:52:44 -0800
Copy / copy database without mysqldump
Without local access to the server, is there any way to copy / clone MySQL database (including content and excluding content) to another database without using mysqldump?
I am currently using MySQL 4.0.
#1 building
If you're using Linux, you can use the following bash script: (it may need some other code cleansing capabilities, but it ...
Posted by kel on Fri, 31 Jan 2020 03:16:41 -0800
No.4-Heist-easy-HTB-walkthrough
No.4-Heist-easy-HTB-walkthrough
Attacker: Official Kali linux 2019 64 bit
By Ikonw
Introduction of drone aircraft
1, Port scan
nmap -sV -sC heist.htb
Nmap scan report for heist.htb (10.10.10.149)
Host is up (0.25s latency).
Not shown: 997 filtered ports
PORT STATE SERVICE VERSION
80/tcp ...
Posted by jason.carter on Sun, 26 Jan 2020 01:26:48 -0800
linux find, locate, where is, which, type
Article directory
1,find
2. locate command
3. Where is command
4. which command
5. type command
1,find
Find is the most commonly used and powerful find command, which can find any type of file.
The general format of the find command is: find < specify Directory > < specify condition > ...
Posted by alexus on Thu, 16 Jan 2020 09:46:02 -0800
6. Playbook cycle, conditional judgment in playbook, handlers in Playbook
1. playbook cycle
#vi/etc/ansible/while.yml //Add the following
---
- hosts: yw02
user: root
tasks:
- name: change mode for files
file: path=/tmp/{{ item }} mode=600
with_items:
- 1.txt
- 2.txt
- 3.txt
Description: A file module is used here, followed by a path, if it is a file, you can write/tmp/1. ...
Posted by genius on Fri, 10 Jan 2020 09:13:32 -0800
How to Deeply Understand the Implementation Mechanism of EKS IAM Authenticator
1. k8s Authentication
We know that apiserver has the following authentication methods:
X509 Client Certs
Static Token File
Bootstrap Tokens
Static Password File
Service Account Tokens
OpenID Connect Tokens
Webhook Token Authentication
Authenticating Proxy
Typically, we use a binary self-built k8s cluster, or a kubeadm-created cluster, the ad ...
Posted by jenp on Tue, 07 Jan 2020 09:40:10 -0800
Configure SFTP/SSH and multi-user settings under Linux
Environmental Science:
CentOS 7,OpenSSH_7.4p1
Summary description:
This article mainly describes how to configure SFTP service, how to set up multi-user and user directory permission control, how to control ssh connection;
Steps:
1. Configure ssh and Sftp (default Sftp server) at the same time
The general root user uses ...
Posted by cgraz on Mon, 06 Jan 2020 14:16:42 -0800
Implementation of non interactive sftp upload and download with Python
Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010950854/article/details/62233538
Implementation of non interactive sftp upload and download with Python
Install Paramiko
Python's Library Paramiko implements the ssh and s ...
Posted by j0hn_ on Sun, 05 Jan 2020 10:39:26 -0800