MacOSX默认只支持ntfs系统的只读,但其实从mac OSX 10.6以后,系统内部是支持对ntfs读写的。可能是版权等原因没有开放。
利用系统自带方式读写NTFS系统的方法:
打开终端
mkdir /Volumes/DATA/
sudo mount -t ntfs -o rw,nobrowse /dev/disk1s2 /Volumes/DATA/
如果想查看硬盘分区,可以使用diskutil list命令。
今天机房网络出现问题,好了后发现svn一直连不上。查看日志发现有如下信息:
Aug 16 15:03:53 svnsh xinetd[19280]: EXIT: svn status=0 pid=29949 duration=1(sec)
Aug 16 15:04:27 svnsh xinetd[19280]: FAIL: svn per_source_limit from=112.64.23.235
网上查了一下,per_source_limit from=
是xinetd的一个机制:
per_source
Takes an integer or “UNLIMITED” as an argument. This specifies the maximum instances of this service per source IP address. This can also be specified in the defaults section.
instances
determines the number of servers that can be simultaneously active for a service (the default is no limit). The value of this attribute can be either a number or UNLIMITED which means that there is no limit.
改成下面这样就好了,增加instances及instances:
aws上创建raid0:
mdadm --create /dev/md0 --level=0 -c256 --raid-devices=8 /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm
echo 'DEVICE /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm' > /etc/mdadm.conf
mdadm --detail --scan >> /etc/mdadm.conf
blockdev --setra 65536 /dev/md0
mkfs -t ext3 /dev/md0
mount /dev/md0 /data1/test
实在是忍受不了新版的百度空间了。
本人新建一个独立博客,请大家有兴趣的移步至新博客: http://www.huilog.com
另外,为抗议百度的新空间,挽救各位受苦受难的博友,特将百度新空间迁移至WordPress的脚本提供大家下载使用。
下载地址:
我在打包时出错:
Processing files: php-debuginfo-5.3.10-1.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/php-5.3.10-1.x86_64
error: Installed (but unpackaged) file(s) found:
/.channels/.alias/pear.txt
/.channels/.alias/pecl.txt
/.channels/.alias/phpdocs.txt
/.channels/__uri.reg
/.channels/doc.php.net.reg
/.channels/pear.php.net.reg
/.channels/pecl.php.net.reg
/.depdb
/.depdblock
/.filemap
/.lock
RPM build errors:
Installed (but unpackaged) file(s) found:
/.channels/.alias/pear.txt
/.channels/.alias/pecl.txt
/.channels/.alias/phpdocs.txt
/.channels/__uri.reg
/.channels/doc.php.net.reg
/.channels/pear.php.net.reg
/.channels/pecl.php.net.reg
/.depdb
/.depdblock
/.filemap
/.lock
在双线双IP机房,是在机房的三层交换机上做汇聚实现单网卡双IP的。
一般来说机房会给两个IP,一个电信,一个联通,但只需要配一个网关,通常为电信。
我们在这个环境内装完centos 5.x后,做内核调优,配置了如下参数:
# Enable IP spoofing protection, turn on source route verification
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.lo.rp_filter = 1
net.ipv4.conf.eth0.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1