上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 11种内置对象native object 外部对象有bom ,dom等 版权声明:本文原创发表于 博客园,作者为 RainBol 本文欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则视为侵权。 阅读全文
posted @ 2018-10-23 10:21 RainBol 阅读(296) 评论(0) 推荐(0) 编辑
摘要: python装饰器[1] 首先先明白以下两点 #嵌套函数 def out1(): def inner1(): print(1234) inner1()#当没有加入inner时out()不会打印输出1234,当前层级也就是作用域下必须调用函数才能引用 out1() #函数作用域 def out2(): 阅读全文
posted @ 2018-10-21 14:51 RainBol 阅读(299) 评论(0) 推荐(0) 编辑
摘要: python基础学习06 模块导入 导入模块的顺序 1.先从当前目录下找 2.当前目录下找不到,再从环境变量中找,如果在同时在当前目录和环境变量中建立相同的py文件,优先使用当前目录下的 导入模块的实质 导入的python文件运行一次,并放到内存中,之后可以调用里面的变量或者方法 导入的python 阅读全文
posted @ 2018-10-14 20:49 RainBol 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 修改httpd端口 默认httpd端口为80,现在改成800 修改两个地方: 1.修改配置文件httpd.conf listen 80 把80改成需要的端口 2.修改配置文件httpd-vhosts.conf 把80改成需要的端口 如果是xampp在启动项vi xampp if testport 8 阅读全文
posted @ 2018-10-12 14:30 RainBol 阅读(5385) 评论(1) 推荐(0) 编辑
摘要: python控制nginx禁封ip nginx中的access.log最近有大量的用户访问,怎么样屏蔽掉在一定时间段内访问次数多的ip呢? 测试准备: 两个tomcat,一个nginx做均衡负载,服务器上装有python3 python脚本 新增加一个配置文件(可自定)和nginx.conf放在一个 阅读全文
posted @ 2018-10-09 18:59 RainBol 阅读(926) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-03 15:22 RainBol 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-03 10:23 RainBol 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 安装python依赖环境 # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-dev 阅读全文
posted @ 2018-09-30 14:15 RainBol 阅读(100) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-09-29 10:11 RainBol 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 常规tomcat,apache,nginx,错误日志,还有项目log4j日志 tomcat (以tomcat7.082为例) tomcat日志配置 运行日志和访问日志结合在一起,先说下日志哪边配置,在tomcat/conf/server.xml下查询pattern选项 valve className 阅读全文
posted @ 2018-09-27 18:29 RainBol 阅读(2168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
Live2D