自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 Kubernetes-(二)Ingress-nginx对外暴露端口

在kubernetes中,如果对外暴露端口,我们可以用方式 1.pods共享宿主机的网络命名空间pod.spec.hostNetwork(无法实现LB) 2.service通过暴露nodeport的方法代理pods向外保罗(无法基于七层协议暴露) 3.通过ingreses-nginx,envoy等kubernetes的副本来向外暴露(可以基于七层协议暴露,实现ssl回话,) 基于ingress-n...

2018-12-07 09:25:50 5779

原创 Kubernetes (一)Pod

apiVersion: apps/v1 kind: Deployment metadata: name: deployment-nginx namespace: default spec: replicas: 2 selector: matchLabels: app: deloyment-nginx rel...

2018-12-04 10:16:51 261

原创 Django rest farmwork(一)(未完)

Django rest farmwork(一) 参考链接 https://www.cnblogs.com/wupeiqi/articles/7805382.html CBV 规范 url(r'^rest1/',restView.Restful_1.as_view() ,name="restful1"), class A(View): ...

2018-10-16 16:59:12 453

原创 Django—session

Session: Session基于cookie做用户认证时: 设置session的时候: 1.session会生成一个随机字符串sessionid 2.Session会将sessionid给cookie 3.Session会将设置的值存贮在session中 客户端通过cookie访问服务器的时候 1.通过cookie中的sessionid来找到对应的session 2.获取session中的值(...

2018-10-09 14:19:36 458

原创 django一基于cookie的验证(auth装饰器)

userlist={ ‘jerry’:“123”, } #定义装饰器 def auth(func): def inner(request,*args,**kwargs): if not request.COOKIES.get(‘username’): return redirect(‘login.html’) return func(request,*args,**kwargs) return i...

2018-09-17 19:19:55 678

原创 Django--模板使用

0917———-

2018-09-17 10:24:07 331

转载 React.js 学习资源

https://blog.youkuaiyun.com/github_38771368/article/details/78731300

2018-09-05 16:14:34 226

原创 Jquery操作点赞功能实列

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .content{ padd

2018-08-24 17:20:37 2074

转载 JQuery操作

JQuery操作手册:http://jquery.cuishifeng.cn/ Ĵjquery笔记: jQuery http://jquery.cuishifeng.cn/ 模块 《=》类库 DOM/BOM/JavaScript的类库 版本: 1.x 1.12 2.x 3.x 转换: jquery对象[0] => Dom对象 Dom对...

2018-08-24 15:16:18 220

原创 【python三】关于rabbitmq的pika模块处理

rabbitmq是基于erlang语言开发的,所以在安装的时候需要用安装erlang,至于怎么安装,可以再网上找 rabbitmq的作用: RabbitMQ is the most widely deployed open source message broker. With more than 35,000 production deployments of Ra...

2018-08-13 14:35:22 1176

原创 【python】堡垒机实列一(多线程,paramiko,configparser模块实践)

1,.定义个setting文件夹中包含的配置文件: [Group1] h1={‘username’:’root’,’password’:’passwd’,’hostname’:’192.250.111.25’,’port’:’22’} h2={‘username’:’root’,’password’:’passwd’,’hostname’:’192.250.110.135’,’port’:’...

2018-08-07 16:42:10 460

原创 [python]-socket之ftp实现

下图是关于client下载文件的粗略思路,如果看不懂没有关系(反正这是画给我自己看的), 假装说明一下: 关于客户端下载功能,client端要做的事情有几件: 1.发送一个下载命令道客户端,比如 cmd =‘get apple.txt‘ 2.client要接受server对于cmd请求的返回,并获得ap...

2018-08-01 17:51:06 1342

原创 python 装饰器一

python装饰器: 定义一个函数去给现有的函数增加功能(而不需要改需要增加功能的函数) 1.函数即变量 2,高阶函数 3.嵌套函数 1.函数即变量 2.高阶函数 a. 函数作为变量,将函数当做实参传递给另外一个函数(在不修改被装饰函数源代码的情况下修改其功能) b...

2018-07-18 11:22:50 185

原创 linux系统【1】-minilinux

1.yum groupinstall 'Development Tools' 'Server Platfrom Development' -y    安装组件   2.cp /home/dwzq/linux-3.10.10.tar.xz /usr/src       复制内核     ln -sv linux-3.10.10 linux     cd /usr/src/linux  3

2018-01-03 17:17:32 434

原创 LAMP环境

httpd 2.4.9 + mysql-5.5.33 + php-5.4.26编译安装过程: 一、编译安装apache 1、解决依赖关系 httpd-2.4.9需要较新版本的apr和apr-util,因此需要事先对其进行升级。升级方式有两种,一种是通过源代码编译安装,一种是直接升级rpm包。这里选择使用编译源代码的方式进行,它们的下载路径为ftp://172.16.0

2018-01-02 20:40:10 261

转载 nginx配置说明

######Nginx配置文件nginx.conf中文详解##### #定义Nginx运行的用户和用户组 user www www; #nginx进程数,建议设置为等于CPU总核心数。 worker_processes 8;   #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ] error_log /usr

2017-09-28 16:02:31 381

转载 在线man

https://linux.die.net/man/

2017-09-28 14:36:10 318

转载 DNS服务说明

http://blog.youkuaiyun.com/guowenyan001/article/details/9330669

2017-08-31 10:38:14 222

转载 nginx+tomcat

简单安装安装nginx   url:   http://www.cnblogs.com/jingmoxukong/p/5945200.html 关于nginx中loaction配置说明: 语法规则: location [=|~|~*|^~] /uri/ { … } = 开头表示精确匹配 ^~ 开头表示uri以某个常规字符串开头,理解为

2017-08-24 13:42:18 265

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除