月归档:2011年12月

一只猥琐的胖猫

FREE photo hosting by http://www.meituge.com | Free Image Hosting

继续阅读

发表在 记录 | 留下评论

N900刷机后安装软件顺序

N900刷机后装软件貌似有先后顺序,如果先安装advanced-power后电池图标会消失,必须按顺序来才可以。

<backup>
 libqtm-systeminfo
 libqtm-contacts
 openssh-server
 libqtm-sensors
 mscim
 angrybirds
 libqtm-bearer
 frontview900
 wifi-switcher
 libqtm-versit
 evince
 foreca-weather-applet
 rdesktop
 feedservice-plugin-ap
 dorian
 libqtm-location
 dtg
 openssh-client
 rootsh
 mp-fremantle-generic-pr
 libqtm-messaging
 mstardict
 simple-brightness-applet
 fapman
 libqtm-publishsubscribe
 n900-fmrx-enabler
 libqtm-multimedia
 mscim-googlepinyin
 nmap
 cpumem-applet
 libqtm-serviceframework
</backup>
 

FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting
FREE photo hosting by http://www.meituge.com | Free Image Hosting

继续阅读

发表在 DIY and Geek | 留下评论

DISCUZ7.2和ss7.5聚合设置提示论坛路径错误

discuz7.2版本与ss后台整合的时候,总是提示论坛路径设置错误,打开SS的后台admin_bbs.php文件,看了之后发现,原来ss是通过读取你设置的URL加一个默认文件的内容,通过远程下载方式,如果下载到的内容的长度大于100,则认为正确,小于则认为错误,解决办法很简单,打开ss的admin_bbs.php文件,将以下代码:
$_SC['bbsurl'] = trim($_POST['bbsurl']);

$txt = sreadfile($_SC['bbsurl'].'/viewthread.php', 'r', 1);
if(strlen($txt) < 100) {
   showmessage('bbs_url_error', CPURL.'?action=bbs&error=bbsurl');
}
替换为:
$_SC['bbsurl'] = trim($_POST['bbsurl']);
//echo "<script>alert('".$_SC['bbsurl']."');</script>";
$txt = sreadfile($_POST['bbsurl'].'/index.php', 'r', 1);
if(strlen($txt) < 100) {
   showmessage('bbs_url_error', CPURL.'?action=bbs&error=bbsurl');
}
 

继续阅读

发表在 Vhost | 留下评论

小猫咪

FREE photo hosting by http://www.meituge.com | Free Image Hosting

继续阅读

发表在 记录 | 留下评论

wget进行递归下载整站至本地

这个命令可以以递归的方式下载整站,并可以将下载的页面中的链接转换为本地链接。

wget加上参数之后,即可成为相当强大的下载工具。

wget -r -p -np -k http://xxx.com/abc/

-r,  –recursive(递归)          specify recursive download.(指定递归下载)
-k,  –convert-links(转换链接)      make links in downloaded HTML point to local files.(将下载的HTML页面中的链接转换为相对链接即本地链接)
-p,  –page-requisites(页面必需元素)    get all images, etc. needed to display HTML page.(下载所有的图片等页面显示所需的内容)
-np, –no-parent(不追溯至父级)          don't ascend to the parent directory.

另外断点续传用-nc参数 日志 用-o参数
 

继续阅读

发表在 Tips | 留下评论

这个机柜怎么样,全部由chromebook组成

FREE photo hosting by www.meituge.com|Free Image Hosting
FREE photo hosting by www.meituge.com|Free Image Hosting
FREE photo hosting by www.meituge.com|Free Image Hosting
FREE photo hosting by www.meituge.com|Free Image Hosting 继续阅读

留下评论

nginx:[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

 在本地电脑上测试一个php整站程序,配置了vhost中conf文件后重启nginx报错:

root@ubuntu:/home/meituge
# /etc/init.d/nginx.sh
Starting php_fpm  done
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:88 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:88 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:88 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:88 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:88 failed (98: Address already in use)
[emerg]: still could not bind()

最后发现原来是nginx重复重启。自己占用了端口。 解决方法  killall -9 nginx 杀掉nginx 进程  然后重启就行了。
/etc/init.d/nginx.sh 搞定。 

点击查看原图

继续阅读

发表在 Vhost | 留下评论