上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: Netcat or nc is a networking utility for debugging and investigating the network.This utility can be used for creating TCP/UDP connections and investigating them. The biggest use of this utility is in the scripts where we need to deal with TCP/UDP sockets.In this article we will learn about the netc 阅读全文
posted @ 2012-11-16 15:58 枯木-Linux 阅读(308) 评论(0) 推荐(0) 编辑
摘要: sql_mode的系统变量可以调控MySQL的SQL模式任何一个客户端可以在不影响其它客户端的情况下改变MySQL服务器对自己的反应如果想在MySQL启动时设置SQL模式,可以在mysql配置文件中添加sql_mode选项sql-mode=”TRADITIONAL”如果在运行过程中修改SQL模式,则可以使用如下命令setsql_mode="TRADITIONAL";Client1mysql> show variables like "sql_mode";+---------------+-------+| Variable_name | Value 阅读全文
posted @ 2012-11-15 10:54 枯木-Linux 阅读(174) 评论(0) 推荐(0) 编辑
摘要: # nc -z localhost 1-10000 //扫描本机1到1000端口,获取打开的端口Connection to localhost 22 port [tcp/ssh] succeeded!Connection to localhost 80 port [tcp/http] succeeded!Connection to localhost 111 port [tcp/sunrpc] succeeded!Connection to localhost 199 port [tcp/smux] succeeded!Connection to localhost 3306 port [tc 阅读全文
posted @ 2012-11-15 10:17 枯木-Linux 阅读(444) 评论(0) 推荐(0) 编辑
摘要: find $PATH -mtime 0 查找距当前时间24小时以内修改的文件 Search for files in your home directory which have been modified in the last twenty-four hours. This command works this way because the time since each file was last modified is divided by 24 hours and any remainder is discarded. That means that to match -mtime 阅读全文
posted @ 2012-11-14 17:37 枯木-Linux 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 本文是笔者阅读《MySQL技术内幕》第一章的一些零散的笔记 mysql> create table member ( member_id int unsigned not null auto_increment, primary key (member_id), last_name varchar(20) not null, first_name varchar(20) not null, suffix varchar(5) null, expriration date null, email varchar(100) null, street varchar(50) null, cit 阅读全文
posted @ 2012-11-13 16:25 枯木-Linux 阅读(220) 评论(0) 推荐(0) 编辑
摘要: PHP超级全局变量数组(Super Global Array),又称为PHP预定义数组,是由PHP引擎内置的,不需要开发者重新定义。 在PHP脚本运行时,PHP会自动将一些数据放在超级全局数组中。php超级全局变量列表:$_GET[] 获得以GET方法提交的变量数组 $_POST[] 获得以POST方法提交的变量数组 $_COOKIE[] 获取和设置当前网站的Cookie标识 $_SESSION[] 取得当前用户访问的唯一标识,以数组形式体现,如sessionid以及自定义session数据 $_ENV[] 当前php环境变量数组 $_SERVER[] 当前php服务器变量数组 ... 阅读全文
posted @ 2012-11-11 16:26 枯木-Linux 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 执行MySQL相关操作的时候,出现如下错误:ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corruptedGoogle获知是因为升级或者数据版本迁移的问题,忽然想起前段时间确实把MySQL5.1版本的数据迁移到了现在的MySQL5.5上,罪过罪过,Linux终端下执行如下命令即可修复:# /usr/local/mysql/bin/mysql_upgrade -uroot -pyoupassword# /usr/local/mysql/bin/mysqlcheck --all-databases - 阅读全文
posted @ 2012-11-10 17:37 枯木-Linux 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Awstats默认安装之后是不具有识别访问者的国家和地区信息的,所以需要安装插件支持Awstats列出访问者的国家和地区,便于分析GeoIP免费的是国家/IP的数据表,GeoIPCityLite是地区的数据表MaxMind目前免费提供了GeoIP和GeoIPCityLite数据包:可以定期每个月从以下地址下载:wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gzwget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry 阅读全文
posted @ 2012-11-04 23:41 枯木-Linux 阅读(925) 评论(0) 推荐(0) 编辑
摘要: AWStats是在Sourceforge上发展很快的一个基于Perl的WEB日志分析工具。相对于另外一个非常优秀的开放源代码的日志分析工具Webalizer,AWStats的优势在于:1.界面友好:可以根据浏览器直接调用相应语言界面(有简体中文版)2.基于Perl:并且很好的解决了跨平台问题,系统本身可以运行在GNU/Linux上或Windows上(安装了ActivePerl后);分析的日志直接支持Apache格式 (combined)和IIS格式(需要修改)。Webalizer虽然也有Windows平台版,但目前已经缺乏维护;AWStats完全可以实现用一套系统完成对自身站点不同WEB服务. 阅读全文
posted @ 2012-11-04 19:59 枯木-Linux 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 其实《HTTP权威指南》早就在8月31日就到我手上了,是图灵出版社的谢工送的书,因为那天很凑巧刚好和她同一天生日。别人的赠书,当然一定要用到实处,书籍的可贵之处就在于你看有所得,而赠书于人,赠书人也是希望被赠者可以有所获。今天是11月了,这本书整整睡了两个月,其中各种原因吧,“死后自会长眠,生前何必久睡”,所以我要开始慢慢阅读这本书了。很多凑巧的事情凑在了一起,也就不凑巧了,大学四年拿了张农学学士,2011放弃大学的专业选择了走Linux的这条路,到现在也不曾有过后悔。虽然现在的自己还欠缺很多东西,但是无论如何得慢慢的走下去,走自己喜欢的路,快乐也好、自我实现也好,我想都好。一直坚信熟能生巧, 阅读全文
posted @ 2012-11-04 14:51 枯木-Linux 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页