更新软件包 sudo apt update sudo apt install nginx 查看状态 sudo systemctl status nginx 状态显示绿色active表示正常运行 防火墙开放相关端口 sudo ufw allow 'Nginx Full' 重新加载规则 sudo ufw ...
分类:
系统相关 时间:
2021-05-24 15:33:12
阅读次数:
0
wget http://nginx.org/download/nginx-1.16.1.tar.gz # 解压 tar -xzf nginx-1.16.1.tar.gz cd nginx-1.16.1 # yum升级 yum update # yum安装依赖 yum -y install gcc p ...
分类:
Web程序 时间:
2021-05-24 15:28:40
阅读次数:
0
c语言中按位逻辑运算符、位移运算符 #include <stdio.h> int count_bits(unsigned x) { int bits = 0; while(x) { if(x & 1U) bits++; x >>= 1; } return bits; } int int_bits(v ...
分类:
编程语言 时间:
2021-05-24 14:41:08
阅读次数:
0
1.打开终端(terminal) 2.安装命令: 命令1:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"(这个命令不好使会报错,如果报错尝试使用命令2 ...
分类:
系统相关 时间:
2021-05-24 13:26:49
阅读次数:
0
相关文件 muduo/net/Channel.h muduo/net/Channel.cc 作用 Channel可理解为一个文件描述符fd和如何处理它的事件的回调函数的封装。 Channel负责注册和响应IO事件. muduo用户一般不直接使用Channel,而使用更上一层的封装,如TCPConne ...
分类:
其他好文 时间:
2021-05-24 12:25:58
阅读次数:
0
Pymysql 一、模块商城pip介绍 pip是个可执行文件,该命令可帮助我们管理第三方模块(将该文件下载到本地,并解压到指定目录) python2,默认无pip命令;python3,默认下载pip命令(但需手动添加到环境变量中) pip相当于统一管理第三方模块的模块商城(pypi.python.o ...
分类:
数据库 时间:
2021-05-24 12:10:38
阅读次数:
0
这题考察的是读者对于数组的基础能力,考点为数组的下标和排序,难度为:1颗星 1 #include<stdio.h> 2 int main() 3 { 4 int arry[10]; // 定义一个数组,用于存放 5 int i; // 临时变量,用完遍历 6 int temp; // 临时变量,作为 ...
分类:
编程语言 时间:
2021-05-24 10:50:45
阅读次数:
0
/system/core/libutils/include/utils/Condition.h 1 // 2 3 // DO NOT USE: please use std::condition_variable instead. 4 5 /* 6 * Condition variable clas ...
分类:
移动开发 时间:
2021-05-24 10:49:00
阅读次数:
0
// 待分页的List集合 var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; // 每页数量 var pageSize = 3; // 计算页数 var pageCount = Math.Ceiling(1.0 * list.Co ...
小程序启动下载逻辑相关: https://game.weixin.qq.com/cgi-bin/h5/static/commlib/index.html 这个是实时的。 但是貌似本地也会存储,存储路径: /var/mobile/Containers/Data/Application/B1E7B553 ...
分类:
微信 时间:
2021-05-24 09:49:44
阅读次数:
0