博文

FreeBSD 10: Installing Apache 2.4, MySQL 5.5, and PHP5.5 — 找不到 libphp5.so

今天装freebsd 10,然后装apache,再装php和php扩展.没有问题. 然后重启apache,发现打不开php页面,提示下载. 刚开始以为php5安装错误了,于是又重新安装一次,发现安装php5时里面没有apache选项了,整了半天也没有发现原因,以前用freebsd8配置apache+php+mysql从来没出现过这种问题,就再试一下php53目录,make config-recursive看看里面是有apache选项的,郁闷,于是又出墙google,终于找到答案了,ls /usr/local/libexec/apache22/ 没找到libphp5.so 然后/usr/ports/www/mod_php5 make install clean;rehash安装,可是又遇到问题了,提示“Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache”,郁闷之极,只能再google,呵呵,又被我找到答案了,万能的google啊,谢谢!关于 “Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache” 请参考这篇文章

Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache

echo “DEFAULT_VERSIONS+=apache=2.2” >> /etc/make.conf

Apache关掉Etag、Last-Modified及apache版本的方法

Etag关掉的方法如下,加一个none   FileETag none   要关掉Last-Modified的方法麻烦点,先想好你要去掉Last-Modified 的标签。然后用header模块来控制   LoadModule headers_module modules/mod_headers.so   <FilesMatch “\.(gif|jpg|png)”> Header unset Last-Modified </FilesMatch>   去掉apache版本号 ServerSignature off ServerTokens prod

amazon china亚马逊中国,我该怎么说你好

图片
亚马逊中国(amazon china),我是亚马逊的忠实粉丝,可是最近亚马逊中国越来越让人觉得反感了,我不知道有没有和我一样相同感觉的网友。2014下半年亚马逊再也看不到Z论坛了,起码我是找不到了,好像没有发言讨论权了,为什么就撤了呢?;2014亚马逊Z实惠再也看不到实惠,一些二手商品标价比新的还贵;2014亚马逊运费又涨价了,从以前的19元起免运费到现在的49元起免运费;2014亚马逊自营商品可以说涨的离谱,列举下面二张图片可以反应出来,第一张是亚马逊2014年12月6日的秒杀商品,第二张是我2013年购买的,还不是秒杀,为什么相差这么远了?唉,这样的商家真的很伤我这个亚马逊忠实粉丝的心……

debian gnome

aptitude search gnome|grep gir1.2-gnomebluetooth-1.0 – Introspection data for GnomeBluetooth gir1.2-gnomekeyring-1.0 – GNOME keyring services library – introspec gnome – Full GNOME Desktop Environment, with extra gnome-accessibility-themes – Accessibility themes for the GNOME desktop gnome-applets – Various applets for the GNOME panel – bina gnome-applets-data – Various applets for the GNOME panel – data gnome-backgrounds – Set of backgrounds packaged with the GNOME gnome-bluetooth – GNOME Bluetooth tools gnome-brave-icon-theme – blue variation of the GNOME-Colors icon th gnome-cards-data – data files for the GNOME card games gnome-color-manager – Color management integration for the GNOME gnome-colors-common – common icons for all GNOME-Colors icon the gnome-common – common scripts and macros to develop with gnome-contacts – Contacts manager for GNOME gnome-control-center – utili...

NTP Pool Time Servers

图片
http://support.ntp.org/bin/view/Servers/NTPPoolServers pool.ntp.org  uses DNS round robin to make a random selection from a pool of time servers who have  volunteered  to be in the pool. This is usually good enough for end-users. The minimal  ntpd  configuration file (e.g.  /etc/ntpd.conf ) for using  pool.ntp.org  is: driftfile /var/lib/ntp/ntp.driftserver 0.pool.ntp.orgserver 1.pool.ntp.orgserver 2.pool.ntp.orgserver 3.pool.ntp.org  Any questions about the pool.ntp.org server pool should be directed either to the  pool mailing list  or to the comp.protocols.time.ntp usenet newsgroup.  Time server operators are encouraged to visit the  NTP Pool  web-site to find out how they can join the NTP pool. The NTP Pool DNS system automatically picks time servers which are geographically close for you, but if you want to choose explicitly, there are sub-zones of pool.ntp.org. The “continent” ones are: Area: HostName: Worldwide pool.ntp.org Asia asia.pool.ntp.org Europe europe.pool.nt...

FreeBSD 11 on Raspberry Pi

Install FreeBSD 11 on a Raspberry Pi   It seems a nice project to try out FreeBSD on a Raspberry Pi. There are ready made images available from FreeBSD.org, so this is not very hard to accomplish. Both for FreeBSD 10 as well as for FreeBSD 11. Feeling wild, I choose for FreeBSD 11 🙂 The image can be downloaded from the FreeBSD ftp-servers. Bunzip your image and dd it to a SD-card   I got the FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20140811-r269824.img.bz2 but perhaps when you read this there are allready newer images available. On a Debian GNU/Linux laptop I ran the command: bunzip2 FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20140811-r269824.img.bz2 Followed by: dd if=FreeBSD-11.0-CURRENT-arm-armv6-RPI-B-20140811-r269824.img of=/dev/mmcblk0 bs=1M Be carefull when you issue this last command, when you got the of= part wrong, you might inreversable destroy things! Now you have a 1Gb big image on your SD card. Put the SD card in the Raspberry Pi and power up. The very first time you boot...

IPv6地址表示方法

对于一个完整的IPv6地址,需要写128位,已经被分成了8段,每段4个字符,也就是说完整地表示一个IPv6地址,需要写32个字母,这是相当长的,并且容易混淆和出错,所以IPv6在地址的表示方法上,是有讲究的,到目前为止,IPv6地址的表示方法分为三种,分别是: 1.首选格式 2.压缩表示 3.IPv4内嵌在IPv6中 下面分别详细介绍这三种IPv6地址表示方法: 1.首选格式 首选格式的表示方法其实没有任何讲究,就是将IPv6中的128位,也就是共32个字符完完整整,一个不漏地全写出来,比如下面就是一些IPv6地址的首选格式表示形式: 0000:0000:0000:0000:0000:0000:0000:0000 0000:0000:0000:0000:0000:0000:0000:0001 2001:0410:0000:1234:FB00:1400:5000:45FF 3ffe:0000:0000:0000:1010:2a2a:0000:0001 FE80:0000:0000:0000:0000:0000:0000:0009 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 从上面IPv6地址的首选格式表示中可以看出,每一个地址,都将32个字符全部写了出来,即使地址中有许多个0,或者有许多个F,也都一个不漏地写了出来,由此可见,首选格式只需要将地址完整写出即可,没有任何复杂的变化,但是容易出错。 2.压缩格式 从前面一个IPv6地址表示方法首选格式表示方法中可以看出,一个完整的IPv6地址中,会经常性的出现许多个0,而我们知道,许多时候,0是毫无意义的,0表示没有,写出来,也表示没有,不写,也同样表示没有,那么我们就考虑能否将不影响地址结果的0给省略不写,这样就可以大大节省时间,也方便人们阅读和书写,这样的将地址省略0的表示方法,称为压缩格式。 而压缩格式的表示中,分三种情况,下面来分别介绍三种压缩格式: 第一种情况: 在IPv6中,地址分为8个段来表示,每个段共4个字符,但是一个完整的IPv6地址会经常碰到整个段4个字符全部都为0,所以我们将整个段4个字符全部都为0的使用双冒号::来表示,如果连续多个段全都为0,那么也可以同样将多个段都使用 双冒号::来表示,如果是多个段,并不需要将双冒号写多次,只需要写一次即可,比如一个地址8个段...

解决android 2.x版本pptp vpn不能连接的问题

手里有个LG p350手机,刷机后系统为2.3.7,始终无法vpn,无论是pptp还是openvpn,当然这还得怪我这个有洁癖,什么都喜欢用原生态,手机也是,非得刷原生态ROM,vpn也只喜欢用系统自带的。 好吧,少话废话,直接上android 2.x版本pptp vpn连接的上,却无法访问网络的的解决方法。原因就出在服务端的配置ppp-options文件上,直接注销“require-mppe-128”这个选项,然后在手机里去掉“启用加密”的勾选。OK,再看看,已经连接上,而且也能访问网络了。 如果是android 4.x,最后是把这项打开,手机上也选上“启用加密”。呵呵……