发布时间:2017-02-17 09:38:30
#!/bin/bashlogs_path="/tomcat/tomcat-token/logs"find $logs_path -mtime +7 -name "localhost_access_log.*.txt" -exec rm -rf {} \;find $logs_path -mtime +7 -name "catalina.*.log" -exec rm -rf {} \;find $logs_path -mtime +7 -name "manager.*.log" -exec rm -rf {} \;find $logs_path -mtime +7 -name ".........【阅读全文】
发布时间:2016-09-26 19:28:57
#!/bin/bashexport JAVA_HOME='/usr/local/jdk'server='transfile_'prefix="/var/instance/fileservice/transfer_file/${server}"begin=0end=9function start() { for (( i=$begin; i<=$end; i++ )) &n.........【阅读全文】
发布时间:2016-09-01 18:59:50
Tracker 和storage 同步 tracker server的配置文件中没有出现storageserver,而storage server的配置文件中会列举出所有的tracker server。这就决定了storage server和tracker server之间的连接由storage server主动发起,storage server为每个tracker server启动一个线程进行连接和通.........【阅读全文】
发布时间:2016-09-01 16:23:15
The communication protocol of FastDFS is TCP/IP, the package composes of header and body which may be empty.header format: @ TRACKER_PROTO_PKG_LEN_SIZE bytes package length @ 1 byte command @ 1 byte statusnote: # TRACKER_PROTO_PKG_LEN_SIZE (8) b.........【阅读全文】