- 博客(5)
- 资源 (41)
- 收藏
- 关注
原创 pytho获取磁盘剩余空间
需安装后Python for Windows Extensionshttp://sourceforge.net/projects/pywin32/files/pywin32/ if path is None: if os.name == 'nt': path = "C:\\" else: path = '
2015-07-20 10:29:14 5160
转载 wget下载FTP目录
wget -nH --cut-dirs=* -m --ftp-user=* --ftp-password=* ftp://*.*.*.*/*-nH:不创建以主机名命名的目录。--cut-dirs:忽略主机上的目录层数。-m:下载所有子目录并且保留目录结构。--ftp-user:FTP用户名--ftp-password:FTP密码ftp://*.*.*.*/*:FTP主机
2015-07-17 09:36:22 1832
转载 增加samba用户提示Failed to add entry for user
[root@ubuntu ~]# smbpasswd -a testNew SMB password:Retype new SMB password:Failed to add entry for user test.解决办法:这是因为没有加相应的系统账号,所以会提示Failed to add entry for user的错误,只需增加相应的系统账号test就可以了:
2015-07-16 17:30:37 2478
原创 nginx切割日志
nginx 利用 logrotate(程序是一个日志文件管理工具)进行日志管理nginx日志管理配置文件:/etc/logrotate.d/nginx/var/log/nginx/*.log { daily missingok rotate 48 compress delaycompress
2015-07-13 15:11:04 825
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人