上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 1、优化前查询速度 2、优化后查询速度 3、优化配置 innodb_buffer_pool_size=4Ginnodb_log_file_size=4Gmax_connections=1024innodb_log_buffer_size=32Mquery_cache_size = 0skip_nam 阅读全文
posted @ 2017-12-05 09:58 杜先生的博客 阅读(328) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding=utf-8 import requests from urllib2 import urlopen # import lxml.html from bs4 import BeautifulSoup import subprocess import sys,os reload(sys) sys.setdefaultencoding('u... 阅读全文
posted @ 2017-11-23 16:44 杜先生的博客 阅读(2377) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # coding : utf8 import re import os,sys #import fileinput # read text f = open(sys.argv[1],'rb') text = f.readlines() f.close() c = [] for i in text: # match Chinese Char = ... 阅读全文
posted @ 2017-11-21 14:02 杜先生的博客 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 1、下载OpenSSL wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz 2、解压编译安装 tar xf openssl-1.1.0e.tar.gz cd openssl-1.1.0e ./config shared zlib mak 阅读全文
posted @ 2017-11-14 17:01 杜先生的博客 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: 1、介绍 本教程使用Compose、Machine、Swarm工具把WordPress部署在OpenStack上。 本节采用Consul作为Swarm的Discovery Service模块,要利用Consul实现服务的注册与发现,需要建立Consul Cluster。在Consul方案中,每个提供 阅读全文
posted @ 2017-10-17 21:56 杜先生的博客 阅读(3248) 评论(0) 推荐(0) 编辑
摘要: 1、Compose安装 curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chm 阅读全文
posted @ 2017-10-16 15:23 杜先生的博客 阅读(917) 评论(0) 推荐(0) 编辑
摘要: 1、选择基础镜像 docker pull tomcat:7.0-jre8 2、生成HTTPS证书 keytool -genkey -alias tomcat -keyalg RSA -keystore tomcat.keystore root@HX-StrMedia:~/ssl# ls tomcat 阅读全文
posted @ 2017-10-14 16:51 杜先生的博客 阅读(2792) 评论(0) 推荐(0) 编辑
摘要: 1、Docker安全主要体现在如下方面 a)Docker容器的安全性 b)镜像安全性 c)Docker daemon安全性 2、安装策略 2.1 Cgroup Cgroup用于限制容器对CPU、内存的使用。 设置容器CPU权重为100,默认为1024 docker run --rm -ti -c 1 阅读全文
posted @ 2017-10-12 21:21 杜先生的博客 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 1、Convoy 1.1 安装 [root@MediaServer tmp]# tar xvf convoy.tar.gz convoy/ convoy/convoy-pdata_tools convoy/convoy convoy/SHA1SUMS [root@MediaServer tmp]# 阅读全文
posted @ 2017-10-10 21:18 杜先生的博客 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 1、随机映射 docker run -P -d --name mynginx1 nginx [root@node1 ~]# docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 602397858dca nginx "n 阅读全文
posted @ 2017-10-10 20:44 杜先生的博客 阅读(2437) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页