如何使用tar对整个文件夹打包? tar cvzf xxx.tar.gz xxx/
wc命令
September 3rd, 2011
moonfox wc命令用来打印文件的文本行数、单词数、字节数等(print the number of newlines, words, and bytes in files) 格式:wc -l 打印指定文件的文本行数。(l=小写L) 参数:-c, –bytes 打印字节数(print the byte counts) 参数:-m, –chars 打印字符数(print the character counts) 参数:-l, –lines 打印行数(print the newline counts) 参数:-w, –words 打印单词数(print the word counts)
安装OpenSSH
July 15th, 2011
moonfox 安装OpenSSH Ubuntu缺省没有安装SSH Server,使用以下命令安装: sudo apt-get install openssh-server openssh-client
fedora ubuntu 建立多重启动菜单
April 10th, 2011
moonfox 实践环境:ubuntu 10.10 和 fedora 14 这里涉及到一个安装先后的问题。 情况一、先安装fedora,后安装ubuntu 如果不出意外的话,ubuntu会自动搜索你硬盘上的所有操作系统,并生成所有操作系统的对应菜单。 如果运气不好,没有生成fedora的启动菜单项,我们可以手工生成。
nginx编译选项
March 26th, 2011
moonfox ./configure –prefix=/opt/nginx \ –conf-path=/etc/nginx/nginx.conf \ –error-log-path=/var/log/nginx/error.log \ –pid-path=/var/tmp/nginx/nginx.pid \ –lock-path=/var/lock/nginx.lock \ –user=nginx \ –group=nginx \ –with-http_flv_module \ –with-http_ssl_module \ –add-module=’/opt/passenger/ext/nginx’ \ –with-http_gzip_static_module \ –http-log-path=/var/log/nginx/access.log \ –http-client-body-temp-path=/var/tmp/nginx/client/ \ –http-proxy-temp-path=/var/tmp/nginx/proxy/ \ –http-fastcgi-temp-path=/var/tmp/nginx/fastcgi/ \ –http-scgi-temp-path=/var/tmp/nginx/scgi/ \ –http-uwsgi-temp-path=/var/tmp/nginx/uwsgi/
rewrite module requires the PCRE library
March 23rd, 2011
moonfox 在编译nginx时遇到rewrite module requires the PCRE library错误,提示需要PCRE库,解决方法: ubuntu下执行 apt-get install libpcre3-dev RHEL下执行 yum -y install pcre-devel
RSS Feed
Twitter
Posted in
Tags: