安装squid $ sudo apt-get install squid 配置squid $ sudo vim /etc/squid/squid.conf 注释以下行: http_access deny !Safe_ports http_access deny CONNECT !SSL_ports ...
分类:
其他好文 时间:
2020-11-16 13:35:32
阅读次数:
7
一个做ftp的docker-compose文件 version: "2.0" services: ftp-server: image: fauria/vsftpd container_name: ftp-test1 ports: - "2340:20" - "2341:21" - "21100-21 ...
分类:
其他好文 时间:
2020-11-16 13:26:52
阅读次数:
6
Web-Server有个配置,工作线程数。Service一般也有个配置,工作线程数。经验丰富的架构师,懂得如何配置这些参数,使得系统的性能达到最优:有些业务设置为CPU核数的2倍,有些业务设置为CPU核数的8倍,有些业务设置为CPU核数的32倍。“线程数”的设置依据,是本文要讨论的问题。工作线程数是不是设置的越大越好?答案显然是否定的:服务器CPU核数有限,能够同时并发的线程数有限,单核CPU设置
分类:
编程语言 时间:
2020-11-16 13:12:13
阅读次数:
10
1、DR模式下vip不在同一网段上实现过程(跨网段) #CIP配置 [root@centos8 ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Generated by dracut initrd NAME="eth0" DEVICE="eth0 ...
分类:
其他好文 时间:
2020-11-13 13:22:25
阅读次数:
34
Are you a Linux fan? Do you hate to do things the easy way? Are you a pro who loves to put his computer’s life on the line to experiment and customize ...
分类:
其他好文 时间:
2020-11-12 13:37:01
阅读次数:
8
1、按钮分类 演示给整个工程中的按钮添加点击音效。 写一个分类,重写类的 load方法。 #import "UIButton+CH.h" #import <objc/runtime.h> @implementation UIButton (CH) + (void)load { [super load ...
分类:
其他好文 时间:
2020-11-12 13:25:34
阅读次数:
7
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrec 出现这个问题的原因: 在安装mysql的时候时区设置的不正确, mysql默认的是美国的时区,而我们中国大陆要比他们迟8小时,采用+8:00格式 使用的数据库是MySQL,没有指定MySQL驱动版本 ...
分类:
数据库 时间:
2020-11-11 16:42:52
阅读次数:
19
一、表是Oracle常见的数据库对象 Oracle中的表分为 ①用户定义的表: --由用户创建并维护的一组表 --包含用户所需的信息 ②数据字典: --由Oracle server 自动创建的一组表 --包含数据库信息 ③查询数据字典 select table_name from user_tabl ...
分类:
数据库 时间:
2020-11-11 16:36:53
阅读次数:
12
import datetime import json import requests from exception import AsstException #自定义 from log import logger #自定义 class Messenger(object): def __init__ ...
分类:
编程语言 时间:
2020-11-11 16:32:04
阅读次数:
9