最近才发现ThinkPHP6.0和CI4.x都要求php版本为7.1以上了,本机的php版本还停留在7.0.3x,又懒得升级,于是考虑使用Docker来运行一个lnmp环境。 常规环境搭建的方式有两种,一种是把php、mysql、nginx分别编写一个Dockerfile,然后再使用docker-c ...
分类:
其他好文 时间:
2021-02-17 15:01:20
阅读次数:
0
组合数学 方法一:预处理 + 递推 \(C_a^b = C_{a-1}^b + C_{a-1}^{b-1}\) 时间复杂度:O(\(n^2\)) #include <bits/stdc++.h> using namespace std; const int MOD = 1e9 + 7; const ...
分类:
其他好文 时间:
2021-02-17 14:54:06
阅读次数:
0
Perfect简介:Perfect框架是Swift的服务器框架之一。 环境:MacOS 10.15.6 ,Xcode 12.3 1、新建一个文件夹 2、终端 cd到上面创建的文件夹,然后命令 git clone https://github.com/PerfectlySoft/PerfectTemp ...
分类:
编程语言 时间:
2021-02-17 14:49:14
阅读次数:
0
前言 因为在jenkins 过程中一般需要去处理一些git的东西,为了完整性,填补一下git管理安装,这里使用gogs,因为gogs比较小,我运行的小机器能够承受,当然只适合个人,这里用来做实验,网上特别多,但是这里详细一点。 正文 1.gogs 下载,可以用window下载传输到linux,在此之 ...
分类:
其他好文 时间:
2021-02-17 14:22:13
阅读次数:
0
1047 Student List for Course Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, ...
分类:
其他好文 时间:
2021-02-17 14:09:06
阅读次数:
0
npm init -y npm i express mongoose ejs npm i method-override nodemon app.js nodemon seeds/index.js models/campgrounds.js const mongoose = require('mon ...
分类:
其他好文 时间:
2021-02-16 12:42:42
阅读次数:
0
工作区: 就是git仓库的目录就属于工作区 [root@node4 git]# pwd/git[root@node4 git]# lsreadme.txt[root@node4 git]# ls -a. .. .git readme.txt[root@node4 git]# cd .git/[roo ...
分类:
其他好文 时间:
2021-02-16 12:34:56
阅读次数:
0
问题描述 在执行 Groovy 代码中,产生如下错误: ava.lang.NoSuchMethodError: com.lispstudio.model.TeamLispstudio: method <init>()V not found 问题原因 在继承父类之后,没调用父类的构造函数。 解决方法 ...
分类:
编程语言 时间:
2021-02-16 12:16:16
阅读次数:
0
考虑到不知道第$104$个素数有多大,可以先用程序测试下第$104$个素数是多少。 const int N=2e5+10; int primes[N],cnt; bool vis[N]; void init(int n) { for(int i=2;i<=n;i++) if(!vis[i]) { p ...
分类:
其他好文 时间:
2021-02-16 12:14:01
阅读次数:
0
(1)docker镜像下载 docker pull elasticsearch:5.6.8 (2)安装es容器 docker run -di --name=changgou_elasticsearch -p 9200:9200 -p 9300:9300 elasticsearch:5.6.8 920 ...
分类:
其他好文 时间:
2021-02-16 12:12:42
阅读次数:
0