上一页 1 ··· 7 8 9 10 11 12 下一页
  2017年7月25日
摘要: >>> time.asctime(x)'Tue Jul 25 14:44:59 2017' 将时间戳转化为string: >>> time.ctime(time.time()) 'Tue Jul 25 15:16:11 2017' >>> print(datetime.datetime.now() 阅读全文
posted @ 2017-07-25 15:25 wadeson 阅读(323) 评论(0) 推荐(0) 编辑
  2017年7月24日
摘要: nginx之proxy反向代理模块: location ^~ /proxy_path/ { root "/www/html"; 这里没必要配置 index index.html; 这里也没必须配置 proxy_pass http://192.168.223.137/; proxy_set_heade 阅读全文
posted @ 2017-07-24 14:50 wadeson 阅读(4549) 评论(0) 推荐(0) 编辑
  2017年7月21日
摘要: lvs工作在内核中,当接收客户端请求,并没有将接收到的请求 送到用户程序空间,而是直接在内核进行转发到了后端服务器 lvs根据目标请求报文的目标ip和port将其转发至后端主机集群中的某一个 根据调度算法来分发至后端的某个主机,响应客户端请求 tcp协议应用在内核中,lvs不需要监听在套接字上面,文 阅读全文
posted @ 2017-07-21 15:24 wadeson 阅读(381) 评论(0) 推荐(0) 编辑
  2017年7月18日
摘要: 现在需求如下: nginx上配有aaa.example.com的虚拟主机,现在需要将访问http://aaa.example.com/api/x.x/client/的请求转到http://bbb.example.com/api/x.x/client/,bbb.example.com的虚拟主机在另外一 阅读全文
posted @ 2017-07-18 11:15 wadeson 阅读(664) 评论(0) 推荐(0) 编辑
摘要: win10客户端请求web服务,win10的ip:192.168.223.1 nginx作为反向代理服务器:192.168.223.136 nginx作为后端web服务器:192.168.223.137 前提条件:配置nginx转发到后端服务器 server { listen 8080; serve 阅读全文
posted @ 2017-07-18 10:56 wadeson 阅读(94604) 评论(2) 推荐(8) 编辑
摘要: 1、首先安装nginx,这里采用编译安装 useradd -M -s /sbin/nologin nginx 安装一些依赖包: yum -y install pcre-devel libxslt-devel gd gd-devel GeoIP GeoIP-devel 最后的这两个包,需要epel源进 阅读全文
posted @ 2017-07-18 09:32 wadeson 阅读(454) 评论(0) 推荐(0) 编辑
  2017年7月13日
摘要: 转载出处:http://blog.sina.com.cn/s/blog_67c5699001010e3e.html umask是unix操作系统的概念,umask决定目录和文件被创建时得到的初始权限umask = 022 时,新建的目录 权限是755,文件的权限是 644umask = 077 时, 阅读全文
posted @ 2017-07-13 16:23 wadeson 阅读(414) 评论(0) 推荐(0) 编辑
摘要: python3.6版本的安装查看上一篇文章 mysql或mariadb数据库的安装查看以前的文章,这里不再赘述 首先在mariadb数据库中创建相应的库和表: MariaDB [(none)]> create database oracle default character set utf8 de 阅读全文
posted @ 2017-07-13 16:02 wadeson 阅读(3849) 评论(0) 推荐(0) 编辑
摘要: wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz --no-check-certificat gunzip Python-3.6.1.tgz tar xf Python-3.6.1.tgz cd Python-3.6.1 mk 阅读全文
posted @ 2017-07-13 14:44 wadeson 阅读(1490) 评论(0) 推荐(0) 编辑
  2017年7月12日
摘要: 安装epel源: cd /etc/yum.repos.d wget http://mirrors.neusoft.edu.cn/epel/epel-release-latest-6.noarch.rpm rpm -ivh epel-release-latest-6.noarch.rpm 然后安装pa 阅读全文
posted @ 2017-07-12 20:47 wadeson 阅读(664) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页