上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 86 下一页
摘要: 对称加密 加密解密用同一个秘钥 非对称加密 私钥加密,公钥解密,公钥和私钥不相同 阅读全文
posted @ 2020-06-03 09:31 富坚老贼 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-02 08:54 富坚老贼 阅读(138) 评论(0) 推荐(0) 编辑
摘要: AddAuthentication 认证 AddAuthorization 授权 一、Cookie认证 public void ConfigureServices(IServiceCollection services) { services.AddControllers(); //启动身份验证中间 阅读全文
posted @ 2020-05-30 13:58 富坚老贼 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 1.新建两个文件 public interface ICounter { int Get(); } public class Counter : ICounter { int i; public int Get() { return i++; } } 2.启动时注册 //单例模式 services. 阅读全文
posted @ 2020-05-30 11:44 富坚老贼 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 一、枚举 1.定义 enum Animal{ case dog case cat case bird } //可以编译器可以推断出右边的类型。点可以省略 var ani:Animal = .bird switch ani { case .bird: print("is bird") case .ca 阅读全文
posted @ 2020-05-28 23:22 富坚老贼 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-27 11:47 富坚老贼 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1. worker_processes 1; events{ worker_connections 1024; } http{ server{ #用户访问的nginx地址 listen *:8080; location / { #被代理的地址 proxy_pass http://127.0.0.1: 阅读全文
posted @ 2020-05-25 16:25 富坚老贼 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 全局配置指令 1.用户权限 在root用户下启动的nginx,在普通用户看不到 user xxx; 2.进程 master_process 主工作进程,默认 on 还可以是off work_process 指定数量/auto 3.守护进程 daemon on/off 默认开启,如果设置成off则 控 阅读全文
posted @ 2020-05-25 14:28 富坚老贼 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.目录结构 conf文件见用来配置文件 html文件夹存放网页 sbin文件夹启动文件 2.启动 (1)在 /sbin 路径下 sudo ./nginx 报错 注:以非root权限启动时,会出现 nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Per 阅读全文
posted @ 2020-05-25 13:55 富坚老贼 阅读(223) 评论(0) 推荐(0) 编辑
摘要: nginx采用多进程和io多路复用的底层实现 在多进程模式中,master主进程和n个worker进程。如果某个进程挂了,主进程会在起一个worker进程 采用BSD许可证。 主要是nginx提供http服务和邮件服务 1.安装之前所需的软件 gcc --编译器套件 sudo apt install 阅读全文
posted @ 2020-05-25 10:24 富坚老贼 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 86 下一页