Docker Three Swordsmen-docker-compose
1. Introduction to Docker-Compose
Compose is a tool for defining and running container docker applications.With Compose, you can use YAML files to fit all the services your application needs.Then, with one command, you can create and start all services from the YAML file pairing.Then you need to understand the basic syntax of YAML files.
Basi ...
Posted by jimdelong on Mon, 23 Dec 2019 10:44:49 -0800
KVM common commands
View all virtual machine status:
[root@kvm7 vps] virsh list --all
To view the specified virtual machine status:
[root@kvm7 vps] virsh domstate vm01
running
Start the virtual machine manually:
[root@kvm7 vps] virsh start vmname
To manually shut down a virtual machine:
[root@kvm7 vps] virsh shutdown vmname
Suspen ...
Posted by SnakeO on Sun, 22 Dec 2019 11:35:43 -0800
File (directory) attribute, file permission, special permission (mandatory bit, adventure bit)
1. View file properties:
ls -l filename
- rw-rw-r-- 1 kiosk kiosk 0 Oct 2 17:05 file
[1] [2] [3] [4] [5] [6] [7] [8]
//notes:
[1]file type
- # Common documents
d # catalog
s # Socket socket, the open interface of a progra ...
Posted by XeroXer on Sun, 22 Dec 2019 08:48:20 -0800
swoole optimized configuration and stress test
swoole optimized configuration and stress test
1, Server hardware:
2, Server side:
3, Client:
Modify the following file: vim /etc/sysctl.conf
Configuration and installation of pressure measuring tools:
4, Server kernel optimization:
5, Testing
1, Server hardware:
2 vCPU 4 GB (I/O optimization) 100Mbps (peak)
2, Se ...
Posted by nickcwj on Sat, 21 Dec 2019 12:50:47 -0800
Nginx+Tomcat Load Balancing Cluster Setup
Introduction to Tomcat
Tomcat was originally developed by Sun's software architect James Duncan Davidson
The directories and files below the installation path after Tomcat is installed are important files for using or configuring Tomcat
Tomcat Important Catalog
bin: Stores Tomcat scripts to start and close
conf: Store different Tomcat confi ...
Posted by ATLien on Fri, 20 Dec 2019 12:59:55 -0800
ImportError: cannot import name Process
The current file name is: multiprocessing.py
#!/usr/bin/env python3
import os
from multiprocessing import Process
def child_proc(name):
print('child process', name, '[',os.getpid(),']','start running...')
if __name__ == '__main__':
print('parent process', os.getpid())
for i in ran ...
Posted by Cynthia Blue on Fri, 20 Dec 2019 12:51:50 -0800
ELK Log Analysis System - (Actual!)
brief introduction
log server
Improving security
Centralized storage of logs
Defect: Difficulty in log analysis
ELK Log Analysis System
Elasticsearch: Storage, Index Pool
Logstash: Log Collector
Kibana: Data visualization
Log Processing Steps
1, centralize log management
2, Logstash and output to Elasticsearch
3. Index and store the f ...
Posted by pkrtech on Thu, 19 Dec 2019 15:11:37 -0800
CentOS 7 Linux Installation MongoDB - yum installation (how to do zgbn)
CentOS 7 Linux Installation MongoDB - yum installation
1. Build repo resources of CentOS7
Enter / etc/yum.repos.d/ directory, create mongodb-org.repo file, edit this file with vim, and add repo resources.Http://mirrors.aliyun.com/mongodb/yum/redhat/7server/mongodb-org/3.0/x86_/ is the resource address provided by Alibaba clo ...
Posted by Karlos2394 on Thu, 19 Dec 2019 11:01:25 -0800
Memcached Memory Database Cluster
Overview of Memcached
An Open Source High Performance Distributed Memory Object Cache SystemAll data is stored in memorySupports data of any storage typeSpeed up Web site access
Memcached Caching Mechanism
When a program writes a cache data request, the API interface of Memcached routes the KEY input routing algorithm module to a service in ...
Posted by MrKaraokeSteve on Tue, 17 Dec 2019 17:20:02 -0800
Squid Sarg log, ACL access control, reverse proxy
Experimental environment
squid server ens33:192.168.13.184
ens36:192.168.10.1 (host mode only)
web server 192.168.13.151
client 192.168.10.10 (host mode only)
I. ACL access control
1. Modify the configuration file on the squid server
[root@squid ~]# vim /etc/squid.conf ##Modify profile
# should be allo ...
Posted by madsporkmurderer on Tue, 17 Dec 2019 07:29:40 -0800