31. 07.
国外就不说了, 那个快呀~~~
如果你不幸租了一台国内的机器, 但是又不得不用centos的时候~~~~yum真是慢呀, 即时你安装了yum-fastestmirror也无济于事, 当你快要崩溃的时候, 我告诉你, 别这样, 孩子!
进入目录/etc/yum.repos.d/
阅读全文 »
30. 07.
今天在windows下安装cygwin, 装完vim后, 我随便打开一个php文件, 默认是没有语法高亮的
于是我 :syntax on, 居然报错:
Error detected while processing /usr/share/vim/vim71/syntax/php.vim:
line 479:
E10: \ should be followed by /, ? or &
25. 07.
头段时候在加拿大的一台server上配置ss5, 自己要用嘛, 都知道现在封了N多网站~~
后来出现了服务器的上的mysql挂掉, 我重启动了几次都失败, 看了下mysql的err log, 发现类似一下的错误:
/usr/sbin/mysqld: Error writing file
Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.
20. 07.
类Unix系统 - 名字解释
类Unix系统(英语:Unix-like)指各种传统的Unix系统,比如FreeBSD、OpenBSD、SUN公司的Solaris,以及各种与传统Unix类似的系统,例如Minix、Linux、QNX等。它们虽然有的是自由软件,有的是商业软件,但都相当程度地继承了原始UNIX的特性,有许多相似处,并且都在一定程度上遵守POSIX规范。
阅读全文 »
13. 07.
Bash While Loop Example - Bash While 循环实例
Q. How do I use bash while loop to repeat certain task under Linux / UNIX operating system?
A. Bash while loop is a control flow statement that allows code or commands to be executed repeatedly based on a given condition. For example, run echo command 5 times or read text file line by line or evaluate the options passed on the command line for a script.
while loop syntax
阅读全文 »
11. 07.
我不是乱发文章啊, 我看到N多人搜索这个, 没办法, 想帮别人... 哈哈
vi到行首, 在vi模式下
按"0" , 是数字0哈, 就可以到达行首啦
到行尾是$, 就是shift+4
11. 07.
今天在freebsd安装subversion,
# pkg_add -r subversion
然后, 就直接像在linux下启动svnserve了
# svnserve -d -r /www/svnroot/
配置文件都修改完毕, 添加了一个用户之后, 发现无法检出, netstat 了一下看到居然是TCP6的3690端口
好先进啊, 看看svnserve --help
可以指定监听主机和端口, 所以这样启动就没问题啦
# svnserve -d -r /www/svnroot/ --listen-host=0.0.0.0 --listen-port=3690
11. 07.
我在linux下编译安装openssl, 执行./config的时候出现如下错误:
make: Warning: File `Makefile.org' has modification time 3.1e+07 s in the future
Makefile is older than Makefile.org, Configure or config.
Reconfigure the source tree (via './config' or 'perl Configure'), please.
make: *** [Makefile] Error 1
从字面的意思就可以看出, 其实就是系统时间问题, 你仔细看下你的系统时间可能和目前的时间有很大的差距
使用data命令或者ntpd把时间调整过来就不会提示错误啦.
阅读全文 »
9. 07.
上次在编译php对mysqli的支持的时候出现了如下错误:
checking whether to enable embedded MySQLi support… no
checking for mysql_set_server_option in -lmysqlclient… no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
阅读全文 »
8. 07.
碰到ELF interpreter /libexec/ld-elf32.so.1 not found错误, 其实就是在64位平台上运行32位软件的不兼容造成的.
解决方法:
其实很简单就是安装lib32, 安装步骤如下:
运行sysinstall -> Configure -> Distributions -> src -> 选择lib32
这样错误就不再啦
hao32