- 博客(71)
- 收藏
- 关注
原创 阻塞和非阻塞,同步和异步
阻塞和非阻塞 I/O。根据应用程序是否阻塞自身运行,可以把 I/O 分为阻塞 I/O 和非阻塞 I/O。所谓阻塞 I/O,是指应用程序在执行 I/O 操作后,如果没有获得响应,就会阻塞当前线程,不能执行其他任务。所谓非阻塞 I/O,是指应用程序在执行 I/O 操作后,不会阻塞当前的线程,可以继续执行其他的任务。同步 I/O 和异步 I/O。根据 I/O 响应的通知方式的不同,可以把文件 I/O 分为同步 I/O 和异步 I/O。所谓同步 I/O,是指收到 I/O 请求后,系统不会立刻响应应用
2021-01-10 16:19:49
100
原创 NLTK:Resource punkt not found. Please use the NLTK Downloader to obtain the resource
1、Python交互模式2、在弹出界面:点击Models ,双击punkt或者选择点击Download安装完成
2020-12-30 17:27:10
354
原创 并发编程学习
并发编程全景图并发编程领域可以抽象成三个核心问题:分工、同步和互斥[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-CfecnzjX-1608639151387)(C:\Users\15761\AppData\Roaming\Typora\typora-user-images\1608606651221.png)] 并发编程全景图之思维导图并发编程Bug的源头源头之一:缓存导致的可见性问题源头之二:线程切换带来的原子性问题源头之三
2020-12-22 20:15:24
116
原创 编译安装Nginx
[root@localhost nginx-1.18.0]# ./configure checking for OS + Linux 3.10.0-327.el7.x86_64 x86_64checking for C compiler ... found + using GNU C compiler + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) checking for gcc -pipe sw
2020-12-20 13:22:45
144
原创 yum install pcre pcre-devel 报错
http://mirrors.aliyun.com/centos/7/os/Packages/pcre-devel-8.32-17.el7.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found--:--:-- ETA 正在尝试其它镜像。http://mirrors.aliyun.com/centos/7/os/repodata/repomd.xml 打不开原因: aliyun镜像已更新修改 /etc/yum.repos.d/CentOS-Ba
2020-12-20 12:59:55
2822
原创 nginx.conf高亮显示
nginx-vim高亮最初复制nginx-1.18.0/contrib/vim/* 到~/.vim下 如果没有.vim则mkdir ~/.vim
2020-12-19 15:57:25
187
1
原创 Spring Boot笔记
**一、**Spring Boot 入门1、Spring Boot 简介简化Spring应用开发的一个框架;整个Spring技术栈的一个大整合;J2EE开发的一站式解决方案;2、微服务2014,martin fowler微服务:架构风格(服务微化)一个应用应该是一组小型服务;可以通过HTTP的方式进行互通;单体应用:ALL IN ONE微服务:每一个功能元素最终都是一个可独立替换和独立升级的软件单元;详细参照微服务文档3、环境准备http://www.gulixueyuan.c
2020-12-10 21:08:33
433
原创 Redis学习资料
https://time.geekbang.org/column/article/278677?utm_campaign=guanwang&utm_source=baidu-ad&utm_medium=ppzq-pc&utm_content=title&utm_term=baidu-ad-ppzq-title
2020-12-09 22:11:48
100
原创 算法
如何理解算法时间复杂度的表示法,例如 O(n²)、O(n)、O(1)、O(nlogn) 等?JAVA 源码分析 ArrayListJAVA 源码分析 LinkedListLinkedList 标准实现代码 LRU Cache - Linked list LUC 缓存机制Redis - Skip List:跳跃表、为啥 Redis 使用跳表(Skip List)而不是使用 Red-Black?...
2020-11-23 22:28:23
101
原创 Docker API /Ubnutu
root@tie-ubnutu-2004:/etc/default# vim /etc/default/docker root@tie-ubnutu-2004:/etc/default# cat /etc/default/docker # Docker Upstart and SysVinit configuration file## THIS FILE DOES NOT APPLY TO SYSTEMD## Please see the documentation for "system
2020-11-21 11:39:00
336
原创 Docker API /CentOS
[root@localhost ~]# vim /etc/sysconfig/docker[root@localhost ~]# cat /etc/sysconfig/dockerOPTIONS='-H=tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock'[root@localhost ~]# systemctl stop docker[root@localhost ~]# systemctl start docker[root@localhos
2020-11-21 10:17:09
513
原创 curl
curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具的意思1、curl 就是发出 GET 请求
2020-11-20 20:59:43
81
原创 tomcat
1、tomcat性能优化 1.1 JVM调优:设置JVM初始堆大小和最大堆大小 在catalina.bat中设置JAVA_OPTS='-Xms=512m -Xmx=512m 1.2 禁用DNS查询 DNS查询需要占用网络,并且包括从很远的服务器或不起作用的服务器去获取对应的IP,这样会消耗一定的时间。 关闭DNS方法:server.xml中设置enbaleLookups="false". 1.3 调整线程数 maxThread:tomcat可创建
2020-11-18 22:48:59
79
原创 Ubnutu20.04安装Docker
1 sudo apt-get remove docker docker-engine docker.io containerd runc2sudo apt-get update3sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common4curl -fsSL https://downlo
2020-10-21 22:36:48
1115
原创 SecureCrt无法连接Ubnutu, 报The remote system refused the connection.
SeCure无法连接Ubnutu原因:没有安装ssh查看22端口安装net-tools普通用户权限不够需要切换成root设置root密码安装openssh-serverssh登录ssh登录成功
2020-10-21 21:44:40
188
原创 SecureCRT登录Ubnutu失败
ssh无法连接虚拟机apt-get 报错sudo rm /var/lib/dpkg/lock-frontendsudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock如果还无法解决,报错:E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.再输入: sudo dpkg --co
2020-10-19 21:46:44
906
原创 Linux学习文档
CentOS镜像下载地址 :官方: https://www.centos.org/download/国内:http://mirrors.aliyun.com/centos/7/isos/x86_64/http://centos.ustc.edu.cn/centos/7/isos/x86_64/http://mirrors.neusoft.edu.cn/centos/7/isos/x86_64/https://mirrors.tuna.tsinghua.edu.cn/centos/7/isos
2020-10-01 17:52:16
82
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅