In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The general idea is as follows, in view of the fact that the last script often got stuck out of sync, so update the script, the idea is like this:
Force the synchronization process to be killed every 4 hours, then sequentially unmount the mount directory and wait 30 seconds before performing the mount. Then execute the synchronization command.
[root@let28 fileos] # cat france24-ftp
#! / bin/bash/usr/bin/ps-ef | grep rsync | grep-v grep | awk'{print "kill-9" $2}'| sh/usr/bin/umount-lf / mnt/france24 echo "1" / usr/bin/sleep 30s echo "2" / usr/bin/curlftpfs-o uid=1003,gid=1003,codepage=gbk ftp://XXXX:XXX_FTP@ftp.france24.com / mnt/france24 echo "3" RSYNCST= `ps-ef | grep-v grep | grep / usr/bin/rsync | grep france24 | wc-l`if [$RSYNCST-eq 1] Then nohup / usr/bin/rsync-avzP-- delete-- exclude=/Ar / mnt/france24/ / home/fileos/file/merge/france24/ & echo 'Rsync is down,Starting up rsync examples else echo' Rysnc is running'fi [root@let28 fileos] #
Executed every four hours
[root@let28 ~] # crontab-l
0 / 4 / usr/bin/sh / home/fileos/france24-ftp
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.