移除了失效的友情链接
分类:吐槽日期:2014-06-24 - 10:21:49评论:12条作者:老谢
h3lpless 2bcto.com
彭涛雅阁 blog.sizhitao.com
徐达峰前端博客 xdf.me
摩尼教 monijiao.com
漂博 llog.cn
设计失控 idea1983.com
施炜煜的blog firefore.com
h3lpless 2bcto.com
彭涛雅阁 blog.sizhitao.com
徐达峰前端博客 xdf.me
摩尼教 monijiao.com
漂博 llog.cn
设计失控 idea1983.com
施炜煜的blog firefore.com
看到一个结合Python转码的IP归属地分析Shell脚本的脚本,对这个脚本挺感兴趣,于是就拿过来测试一下,但是发现脚本执行后无法执行输出ip的信息:
[root@xj123 ip]# ./ip.sh IP地址 国家 运营商 区域 省份 城市 县/区 ====================================================================== 114.216.229.147 |
由于不懂脚本就请教了D大,在此再次非常感谢D大不吝赐教(大晚上的打扰休息实在是不好意思的哈。。。),下面继续回到正题:
zabbix是Alexei Vladishev开发的。当前Zabbix SIA积极的支持与开发它。zabbix是一个企业级、完全开源的分布式监控解决方案。
zabbix是一个监控网络和服务器状况众多参数的软件。zabbix使用非常灵活的报警机制来让用户配置基于e-mail的事件报警。这也保证了对服务器故障的快速响应。它具有基于存储的数据来提供杰出的可视化数据报告的特性。这让zabbix在容量规划方面十分理想。
之前玩过cacti和nagios,算是一个大家耳熟能详的业内常用的的网管互补组合,但个人感觉前者由于调用snmp协议,导致有时候在网络不太稳定时会有数据丢失情况,后者nagios虽然不依赖于SNMP,但客户端的复杂的安装,初始配置以及需要读懂插件语法导致会让很多初学者望而却步。
zabbix不仅吸取了两者的制图和动态监测的优点,而且很多插件以及常用脚本模板都是系统自带,最重要的配置相对于前两者简洁了很多,所以省去了很多学习成本,加之该监控系统是利用PHP语言写的,系统个人定制就无需使用者修改底层代码,而可以直接在WEB界面去按照自己的偏好设置,支持字体修改以及简体中文,强烈推荐大家在线上使用这套网管平台。
wget -c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && cd lnmp1.1-full && ./centos.sh #LNMP相关安装配置以及使用的问题本贴不做任何阐述,注意的是如果是自行编译,一定要安装上gettext模块 |
最近一段时间google的服务各种抽,包括google.hk的搜索我这边经常连不上,都已经挂上代理了,最近也有不少的客户朋友反应网站加载速度缓慢,
经过检查都是由于使用的主题加载了google在线字体的问题导致的,一直卡在连接谷歌的在线字体服务器上面,我们直接禁用掉谷歌的在线字体即可。
意外发现博客的rss feed和sitemap.xml出现如下的错误:
This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
网上搜索了一下,可能是由于主题的functions.php文件?>后存在空行导致的,检查后没有发现问题,折腾了半天发现一款名为Fix My Feed RSS Repair的插件,安装使用修复后问题解决
PAP认证的方式用了一个多学期,突然无法正常使用,拨号后要求升级到最新客户端,
升级最新版客户端以后重新抓包发现用户名的混淆改了,PAP的认证方式看来是被禁止了,
CHAP的算法根本不知道,本文只是吐槽,淘宝上还有破解的路由器再卖,打算买一个试试看了:
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.6.tar.gz tar -zxf nagios-4.0.6.tar.gz cd nagios-4.0.6 ./configure --prefix=/usr/local/nagios/ --with-comman-group=nagios --with-httpd-conf=/etc/httpd/conf/extra/ make all&&make install |
之前用LAMP的时候也是这个错误,那时候装了个FTP所以直接在wp-config.php里面定义FTP的办法来解决这个问题,现在用阿里云配置LNMP感觉SFTP也很方便,国内速度够快,所以懒得再去装FTP,所以苦苦搜索解决办法,经过大量搜索,得到的答案都是权限问题,我确信我的php执行用户是www,也给了相应正确的用户权限,但是依旧无解。。。蛋X的是在wp后台编辑插件主题等都是正常的,可以说明php有写入的权限,又一番苦苦搜索,找到了下面一个办法来解决这个问题:
在wp-config.php结尾添加如下字段:
/* Fix WordPress autoupgrades on Byethost.com */ putenv('TMPDIR=' . ini_get('upload_tmp_dir')); if(is_admin()) { add_filter('filesystem_method', create_function('$a', 'return "direct";' )); define( 'FS_CHMOD_DIR', 0751 ); } |
保存后即可正常使用自动更新的功能
官方关于文章形式帮助文档:http://codex.wordpress.org/zh-cn:文章形式
需要说明下的是在使用相册形式的时候,需要在循环体内加入下面的一句代码,以让可以使用自己定义的css样式
<?php add_filter( 'use_default_gallery_style', '__return_false' ); ?> |
下面直接贴出我的loop.php以便大家参考:
<?php if ( has_post_format( 'status' )) { ?> <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>"> <div class="post-data"> <div class="title"> <!--<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>--> <h3 class="aside"><span>分类:<?php the_category(', '); ?></span><span>日期:<?php the_time('Y-m-d'); ?></span><span><span>作者:<?php the_author(); ?></span><span><?php if (function_exists('custom_the_views')) : ?>阅读:<?php custom_the_views($post->ID); ?></span><?php endif; ?> </h3> </div> </div> <div class="post-txt"><a href="<?php the_permalink() ?>" rel="bookmark"><?php echo get_avatar( get_the_author_meta('ID'), 42 ); ?></a><?php the_content(); ?></div> </div> <?php }else if ( has_post_format( 'gallery' ) ){ ?> <?php add_filter( 'use_default_gallery_style', '__return_false' ); ?> <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>"> <div class="post-data"> <div class="title"> <!--<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>--> <h3 class="aside"><span>标题:<?php echo the_title(); ?></span><span>分类:<?php the_category(', '); ?></span><span>日期:<?php the_time('Y-m-d'); ?></span><span><span>作者:<?php the_author(); ?></span><span><?php if (function_exists('custom_the_views')) : ?>阅读:<?php custom_the_views($post->ID); ?></span><?php endif; ?> </h3> </div> </div> <div class="post-txt"><?php echo do_shortcode('[gallery columns="3" size="thumbnail" link="file"]'); ?></div> </div> <?php }else{ ?> <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>"> <div class="post-data"> <div class="title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <h3><span>分类:<?php the_category(', '); ?></span><span>日期:<?php the_time('Y-m-d'); ?></span><span>评论:<?php comments_popup_link(__('0条'), __('1条'), __('%条'), '', __('已关闭评论')); ?></span><span>作者:<?php the_author(); ?></span><span><?php if (function_exists('custom_the_views')) : ?>阅读:<?php custom_the_views($post->ID); ?></span><?php endif; ?> </h3> </div> </div> <div class="post-txt"><?php the_content( __( '<b>继续阅读...</b>') ); ?></div> <?php the_tags('<div class="tags">Tags: ', ' , ', '</div>'); ?> </div> <?php } ?> |
最新评论
jiyouzhan:这篇文章写得深入浅出,让我这个...
空空裤兜:在天猫买的利维斯顿,阿里智能APP...
林羽凡:我突然发现,你也记录了很多博文了。
菊座:小米的东西还行
zwwooooo:一般电器产品都jd,就是想售后身心
zwwooooo:能随便搞个公司玩玩也算是实力选手
大D:坚持就是胜利哈哈哈
老麦:看着那一排日志存档,老前辈了啊。
大峰:这售后可以嘛~
平安家属子痕:终于更新了,你这年更都算不上...