欢迎加入Python爱好者QQ群(Pythoner):103441184

日期:12-03-25 |  分类:Linux |  标签: |  1 Comments

wget -c -t 0 -O test.tar.gz http://www.redicecn.com/test.tar.gz -c 断点续传 -t 0 反复尝试的次数,0为不限次数 -O test.tar.gz 把下载的文件命名为test.tar.gz

阅读剩余部分...

日期:12-03-18 |  分类:Linux |  标签: |  1 Comments

xp,ubuntu双系统 刚开始用的挺好,某天突然进不去xp了(准确地说:grub菜单消失了,直接默认就进ubuntu了)。 问题解决: sudo update-grub 输入密码 搞定

阅读剩余部分...

日期:12-03-17 |  分类:Linux |  标签: |  0 Comments

下载地址: http://sourceforge.net/projects/s3tools/files/latest/download?source=files 解压:unzips3cmd-1.1.0-beta3.zip 安装:python setup.py install 配置Key:s3cmd --configure 按照提示依次输入Access Key和Secret Key。 更多说明: Simple S3cm

阅读剩余部分...

日期:12-03-17 |  分类:Linux |  标签: |  0 Comments

gzip -d XXXX.gz

阅读剩余部分...

日期:12-02-11 |  分类:Linux |  标签: |  0 Comments

查看nohup.out文件的内容(大于10万行),显示行号,显法读取文件的百分比、行号及总行数。 root@li384-34:/data/grainger_images# less -NM nohup.out 1 Searching for images/10000/1F000/1F400/1F401/1B1529.jpg, processed_num = 1. 2 Searching for ima

阅读剩余部分...

日期:12-02-10 |  分类:Linux |  标签: |  0 Comments

查询us_surnames.csv文件的行数 root@li384-34:/data/usa_names# wc -l usa_names.csv 1058827 usa_names.csv PS:文件的总行数为1058827。 wc命令的其它参数: root@li384-34:/data/usa_names# wc --help Usage: wc [OPTION]... [FILE]... or: wc [OPTION].

阅读剩余部分...

日期:12-01-13 |  分类:Linux |  标签: |  0 Comments

head 命令可查看文件的前N行/字节的数据: root@li384-34:/# head --help Usage: head [OPTION]... [FILE]... Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With

阅读剩余部分...

日期:12-01-03 |  分类:Linux |  标签: |  0 Comments

du -sh 文件夹路径 例如: [root@localhost wwwroot]# du -sh www.redicecn.com 603M www.redicecn.com 参数说明: -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) PS:ls命令也支持-h参数,含义同上,以K, M, G为单位显示

阅读剩余部分...

日期:11-12-26 |  分类:Linux |  标签: |  0 Comments

朋友的服务器,今天频繁出现502 Bad Gateway错误,重启LNMP后恢复正常,但是过一会儿又出现问题。 在网上查到FastCGI的进程数不够往往会导致该问题,原文章在这里 http://blog.s135.com/post/361/ (大名鼎鼎张宴的博文)。 使用 netstat -anpo | grep php-c

阅读剩余部分...

日期:11-11-20 |  分类:Linux |  标签: |  0 Comments

启动方法: /usr/local/pureftpd/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf 在pure-config.pl内部会执行/usr/local/pureftpd/sbin/pure-ftpd -A -B -l mysql:/etc/pure-ftpd/pureftpd-mysql.conf ,并维持pure-ftpd的运行。 附加的参数是从PureFTP

阅读剩余部分...

日期:11-11-19 |  分类:Linux |  标签: |  0 Comments

现象是: 成功登录PureFTPd管理工具后,一直在加载页面,过了很长时间服务器返回500错误。 通过追踪发现,问题出现在如下代码段: // Read the userfile for example '/etc/passwd'// todo check security settings of php$filename = $UsersFile;$fh = fope

阅读剩余部分...

日期:11-11-18 |  分类:Linux |  标签: |  0 Comments

Webmin安装方便,功能强大。可以进行系统用户管理、Apache虚拟主机管理、MySQL数据库管理、文件管理等各种在Shell下需要输入一大堆命令才能完成的操作。 不管你对Linux熟悉还是不熟悉,这个工具都能帮你节省生命。 如下图所示,是Apache虚拟主机的管理界面。

阅读剩余部分...

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部