Artifact & GitLab CI continuous integration practice
GitLab CI enables you to create multiple builds and evaluate whether each code submission passes the test and the impact on your product. In the process of building, a large number of binary files will be generated. If these files are not managed correctly on a large scale, the binary file management will be confused. In order to overcome thi ...
Posted by cullouch on Wed, 19 Feb 2020 12:26:13 +0100
Haproxy implements the configuration method of https for some domain names and http for other domain names
Requirement:
1. Haproxy must be at least 1.5 to support ssl certificates2. To use ssl module, openssl software must be installed, and the version should meet the requirements
openssl installation
tar zxf openssl-0.9.8zh.tar.gz
cd openssl-0.9.8zh
./config enable-tlsext --prefix=/usr/local/openssl no-shared
make && make install_sw
#The ...
Posted by cigardude on Thu, 13 Feb 2020 17:28:35 +0100
Centos6 install openvpn use easy-rsa 3.0 certificate authentication
Install openvpn
yum install -y epel-release
yum install -y openvpn easy-rsa openssl openssl-devel lzo lzo-devel pam pam-devel automake pkgconfig
After the above command is executed, there will be a directory of / etc/openvpn, where we usually put configuration files.
1. View the openvpn version:
[root@openvpn ~]# openvpn --version |h ...
Posted by LordMalek on Sun, 02 Feb 2020 08:50:48 +0100
prometheus monitoring port
In daily monitoring, health monitoring is very important for services. Most of its monitoring methods are to monitor service ports and service processes, usually only one of them needs to be monitored.
blackbox_exporter is one of the official exporters of Prometheus, which can provide monitoring data collection of http, dns, tcp and icmp
Blac ...
Posted by love_php on Thu, 26 Dec 2019 17:43:47 +0100
Management of rpm command
1. Difference between Yum and rpm
The yum command will find the dependency from the image itself when installing the software, and then resolve it. If it fails to resolve it, an error will be reported
The rpm command does not solve the dependency when installing the software. It is applicable to the installation of all softw ...
Posted by Graeme1972 on Fri, 13 Dec 2019 18:22:17 +0100
linux foundation week 4
1. Count the number of users whose default shell is not / sbin/nologin in / etc/passwd file, and display the users
[root@localhost ~]# awk -F: -v i="0" '$NF !~ "/sbin/nologin"{print ++i,$1,$NF}' /etc/passwd
1 root /bin/bash
2 sync /bin/sync
3 shutdown /sbin/shutdown
4 halt /sbin/halt
2. Find out the user name, uid and shell type with the ...
Posted by Skara on Sun, 08 Dec 2019 22:16:17 +0100
Teach you how to easily deploy squid forward agent in 5 minutes
The forward proxy is a server between the client and the original server. In order to obtain content from the original server, the client sends a request to the proxy and specifies the target (the original server), and then the proxy delivers the request to the original server and returns the obtained content to the client. The client can use ...
Posted by kael.shipman on Fri, 06 Dec 2019 10:53:38 +0100
Cloud server (Tencent cloud) deploy MySQL 5.7 installation from scratch
1. Install yum repo
There is no mysql in the yum source of centos (you can try to use the installation command directly: Yum install mysql server). You need to download the yum repo configuration file on mysql's official website, and then install:
#download
wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
#repo inst ...
Posted by stemp on Fri, 06 Dec 2019 04:11:42 +0100
docker installs ElasticSearch (version 6.x)
Install ElasticSearch
Pull the image and select version 6.5.0
$ docker pull elasticsearch:6.5.0
View mirroring
$ docker images
Start a container
$ docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 elasticsearch:6.5.0
42d639a089348b393b0cc912141ef357b6565996c5c4863e363f8729da229d7d
Then visit GE ...
Posted by mrbaseball34 on Wed, 04 Dec 2019 08:46:25 +0100
MySQL is highly available. MySQL is master-slave + maintained.
1. Environment: centos7.5 MySQL 5.7192.168.3.222 master192.168.3.158 slave192.168.3.223 VIPTwo: first, make two mastersTo operate both machines2.1: domain name resolution:
###vim /etc/hosts (both)
192.168.3.222 master
192.168.3.158 slave
2.2: Download MySQL 5.7
### wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
### rpm - ...
Posted by blufish on Mon, 02 Dec 2019 16:52:41 +0100