上一页 1 ··· 3 4 5 6 7
摘要: Python中常用的正则表达式处理函数: re.match re.match 尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。 import re text = "JGood is a handsome boy, he is cool, clever, and so on..." m 阅读全文
posted @ 2017-01-08 14:17 TK-D小跆风 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 一、仅一个网卡的情况下,可以让该机器可以通过多个IP被访问,或隐藏常用IP,让他人访问其临时IP。 1.如果临时性的增加一个IP(重启机器或network服务后,丢失),可以使用ifconfig命令 1)先查看目前的网卡信息 [root@test network scripts] ifconfig 阅读全文
posted @ 2017-01-05 22:09 TK-D小跆风 阅读(948) 评论(0) 推荐(0) 编辑
摘要: MySQL创建用户(包括密码)时,会提示ERROR 1372 (HY000): Password hash should be a 41 digit hexadecimal number; 问题原因:你输入的密码是明文。不允许这么输入。 解决办法:用select password('你想输入的密码' 阅读全文
posted @ 2017-01-05 21:01 TK-D小跆风 阅读(4892) 评论(0) 推荐(1) 编辑
摘要: 1.进入/etc/httpd/conf 下 将httpd.conf 打开。 2.将DocumentRoot注释掉。(将ServerName 打开要不会有错误警告)。 3.将虚拟主机站点配置包含进来:Include conf.d/vhosts.conf。然后保存关闭httpd.conf。 4.进入/e 阅读全文
posted @ 2017-01-05 14:47 TK-D小跆风 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 第一部分:CentOS 7安装MySQL 5.7 1.下载YUM库 shell wget http://dev.mysql.com/get/mysql57 community release el7 7.noarch.rpm 2.安装YUM库 shell yum localinstall y mys 阅读全文
posted @ 2017-01-04 13:03 TK-D小跆风 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 项目目录: project/ init.py views.py settings.py urls.py static/ css/ css.css js/ js.js img/ root/ templates/ index.html settings.py : 1.INSTALLED_APPS加入三个 阅读全文
posted @ 2017-01-01 13:00 TK-D小跆风 阅读(839) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7