系统优化 系统内核优化参考 $ cat /etc/sysctl.conf net.ipv4.tcp_max_syn_backlog = 65536 net.core.netdev_max_backlog = 36768 net.core.somaxconn = 36768 net.core.wmem ...
分类:
其他好文 时间:
2020-07-20 15:18:50
阅读次数:
65
修改list类型的state 方式一: 通过list的concat方法,如下 let newList = this.state.selectedApiDetailList.concat(response.data) this.setState({selectedApiDetailList: newL ...
分类:
其他好文 时间:
2020-07-20 13:20:45
阅读次数:
114
水仙花数之C语言经典案例分析
【什么是水仙花数】
? ? ? ?水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身(例如:1^3 + 5^3+ 3^3 = 153)。
分类:
编程语言 时间:
2020-07-20 11:07:44
阅读次数:
82
前言 本文简记运行、配置 Nginx 容器的过程。 启动 Nginx 容器 拉取 Nginx 镜像 命令: sudo docker pull nginx:latest 编写 dockr-compose.yml 文件 在 /opt 目录下创建文件夹 docker_nginx 。 sudo mkdir ...
分类:
其他好文 时间:
2020-07-19 23:24:28
阅读次数:
75
html5+css3响应式垂直时间轴,使用了html5标签<section>,时间轴中所有的内容包括标题、简介、时间和图像都放在.cd-timeline-block的div中,多个div形成一个序列,并把这些div放在<section>中。 PC端: 移动端: html代码: <!DOCTYPE h ...
分类:
Web程序 时间:
2020-07-19 18:11:56
阅读次数:
166
指针变量声明:例: int* p1, p2, p3; public static unsafe void swap(int a,int b) { int temp; temp = a; a = b; b = a; } public static unsafe void swapP(int* pa,i ...
承接上一篇《我的第一个mybatis程序》,继续增加增删改查部分的内容。 在mybatis环境搭建完成之后,原来的需要的jdbc工作也差不多算是被mybatis框架替代了,我们只需要编写少量的代码就可以实现对数据库的操作。 环境搭建完成之后,只需要以下三个步骤可以实现增删改查了: UserMappe ...
分类:
其他好文 时间:
2020-07-19 18:02:09
阅读次数:
72
1、准备环境 1. MySQL 2. Gogs二进制包 3. git 4. git用户 5. nginx 6. 域名 7. ssl证书 1.1 创建gogs用户和对应的数据库并授权 create database `gogs` character set utf8 collate utf8_gene ...
分类:
其他好文 时间:
2020-07-19 16:14:34
阅读次数:
70
需要序列化的类需实现接口: public class ResponseModel implements Serializable { 序列化和反序列化代码例子: import com.fasterxml.jackson.annotation.JsonInclude; import com.faste ...
分类:
Web程序 时间:
2020-07-19 16:07:17
阅读次数:
101