上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
摘要: 1、连接网络:CentOS minimal.iso安装好后,进入终端,默认是不开网络的, 首先启用网卡, 自动获取ip.ifconfig eth0 updhclient eth0这时候再 ifconfig 一下,就可以看见已经自动分配好IP了2、安装X Window:yum groupinstall "X Window System"3、安装gnome:yum groupinstall "Desktop"(6.2中Desktop就是gnome)然后就等吧,当然在这里之前,可以先安装wget,然后修改下centos的网络源为163的再安装gnome,修改源 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(639) 评论(0) 推荐(0) 编辑
摘要: (一)Linux 系统密码破解 1.在grub选项菜单按E进入编辑模式 2.编辑kernel那行 /init 1 (或/single) 3.按B重启 4.进入后执行下列命令 root@#passwd root (设置root的密码) Enter new unix password:输入新的密码 root@#init 6 (二)debian linux 系统密码破解 1.在grub选项菜单'Debian GNU/Linux,...(recovery mode)',按e进入编辑模式 2.编辑kernel那行最后面的 ro single 改成 rw single init=/... 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(280) 评论(0) 推荐(0) 编辑
摘要: whereis 软件检查数据库mysqlcheck -uroot -p --all-databases修复$ mysql -uroot -p databasename REPAIR TABLE tablename;备份(lock):mysqldump -uroot -psncasdqwe --all-databases --lock-tables=false>yfdata_time.sql 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(687) 评论(0) 推荐(0) 编辑
摘要: Windows:1.关闭正在运行的MySQL。2.打开DOS窗口,转到mysql\bin目录。3.输入mysqld --skip-grant-tables回车。如果没有出现提示信息,那就对了。4.再开一个DOS窗口(因为刚才那个DOS窗口已经不能动了),转到mysql\bin目录。5.输入mysql回车,如果成功,将出现MySQL提示符 >6. 连接权限数据库>use mysql; (>是本来就有的提示符,别忘了最后的分号)6.改密码:> update user set password=password("520") where user=&quo 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(206) 评论(0) 推荐(0) 编辑
摘要: PHP的数据类型转换属于强制转换,允许转换的PHP数据类型有:•(int)、(integer):转换成整形•(float)、(double)、(real):转换成浮点型•(string):转换成字符串•(bool)、(boolean):转换成布尔类型•(array):转换成数组•(object):转换成对象PHP数据类型有三种转换方式:•在要转换的变量之前加上用括号括起来的目标类型•使用3个具体类型的转换函数,intval()、floatval()、strval()•使用通用类型转换函数settype(mixed var,string type)第一种转换方式: (int) (bool) (f 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(247) 评论(0) 推荐(0) 编辑
摘要: select * from wp_98_posts;select * from wp_98_posts p left join wp_click c on p.ID = c.tag_id where c.blog_id = 98 and p.ID = 13 group by tag_id,blog_id ;select * from wp_98_posts;select * from wp_98_posts p left join wp_click c on p.ID = c.tag_idand c.blog_id = 98 and p.ID = 13 group by tag_id,blog 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 检查数据库 mysqlcheck -uroot -p --all-databases修复 $ mysql -uroot -p databasename REPAIR TABLE tablename;函数使用:字符串连接、截取update video set vimage = concat(subst... 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 原文:jQuery方法扩展:type, toJSON, evalJSON. http://zhkac.iteye.com/blog/499330 .2013-05-19(function($) { // the code of this function is from // http://lucassmith.name/pub/typeof.html $.type = function(o) { var _toS = Object.prototype.toString; var _types = { 'unde... 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 导出数据:slapcat-lexport.ldif 阅读全文
posted @ 2013-09-27 10:37 长城的草 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、git提交错误在用git 向github提交代码时出现:error: RPC failed; result=22, HTTP code = 411fatal: The remote end hung up unexpectedly可能是push的文件大小超过了http post默认的大小,因此我们只需执行如下代码就可以#git config http.postBuffer 524288000#第一句可能找不到变量,用第二句git config --global http.postBuffer 52428800参考:[1]http://stackoverflow.com/questions/ 阅读全文
posted @ 2013-09-27 10:36 长城的草 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页