LNMP架构详解(需要本实验的源码包请私信我)Nginx安装挂载源码包[root@localhost~]#smbclient-L//192.168.100.23/#访问宿主机EnterSAMBA\root‘spassword:OS=[Windows10Enterprise17763]Server=[Windows10Enterprise6.3]SharenameTypeComment-------
分类:
其他好文 时间:
2019-11-13 10:41:33
阅读次数:
81
Apache网页优化概述在企业中,部署Apache后只采用默认的配置参数,会引发网站很多问题,换言之默认配置是针对以前较低的服务器配置的,以前的配置已经不适用当今互联网时代为了适应企业需求,就需要考虑如何提升Apache的性能与稳定性,这就是Apache优化的内容gzip介绍■配置Apache的网页压缩功能,是使用gzip压缩算法来对网页内容进行压缩后再传输到客户端浏览器■作用●降低了网络传输的字
分类:
Web程序 时间:
2019-11-12 11:26:20
阅读次数:
98
ansible之所以功能强大,不是ansible本身,是因为它有众多的模块,前文我们介绍了ansible的基础介绍,系列命令的用法以及选项的说明,通过前文的学习我们知道了ansible是基于python语言编写,我们在执行一条ansible命令通常会指定一个模块,即便不指定它也有默认的模块,它的工作 ...
分类:
其他好文 时间:
2019-11-11 21:54:33
阅读次数:
118
#define HAVE_STRUCT_TIMESPEC#include<bits/stdc++.h>using namespace std;pair<int,int>a[200007];int n;long long s;bool check(int x){ int num=0; long lon ...
分类:
其他好文 时间:
2019-11-11 09:39:47
阅读次数:
72
Sealos安装Kubernetesv1.16.0HA集群github项目链接https://github.com/fanux/sealos初始化master节点与worker节点初始化脚本init.sh#!/bin/bash#在master节点和worker节点都要执行#安装docker#参考文档如下#https://docs.docker.com/install/linux/docker-ce
分类:
Web程序 时间:
2019-11-09 00:41:42
阅读次数:
312
下面是常见函数的代码例子 1 import torch 2 import numpy as np 3 print("分割线 ") 4 #加减乘除操作 5 a = torch.rand(3,4) 6 b = torch.rand(4) 7 print(a) 8 print(b) 9 print(tor ...
分类:
其他好文 时间:
2019-11-09 00:18:05
阅读次数:
95
主要是通过两点: 1、通过if (manualResetEvent.WaitOne(timeout, false))来处理。它的作用是:阻止当前线程N毫秒,期间如果有调用manualResetEvent.Set()取消当前线程的阻塞,并且返回true;如果没有调用,依然取消当前线程的阻塞,但是返回f ...
安装 启动 1. 2. supervisord 的配置文件默认位于 ,`;`后面为注释 关闭服务 1. 先关闭supervisor启动脚本,之后再关闭supervisord服务 2. 配置 supervisord 配置 program 项的路径下: ,然后 program 的配置文件命名规则推荐: ...
分类:
系统相关 时间:
2019-11-07 19:29:54
阅读次数:
90
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { string str1; string str2; int length; while(cin>>str1>>str2) ...
分类:
其他好文 时间:
2019-11-06 10:27:19
阅读次数:
107
#include <iostream> #include <string> using namespace std; int main() { int n, plus, sub; string ope; while(cin>>n) { plus=sub=0; while(n--) { cin>>op ...
分类:
其他好文 时间:
2019-11-06 10:26:30
阅读次数:
90