Skip to content

Commit c9317d4

Browse files
committed
优化
1 parent 5033dd9 commit c9317d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fastdfs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ if [ "${FASTDFS_MODE}" = "tracker" ] ;
2525
# Start the tracker
2626
/usr/local/bin/fdfs_trackerd start
2727
# Wait for the log file to be generated
28-
while [ ! -f /home/dfs/logs/trackerd.log ]; do
28+
while [ ! -f /opt/fastdfs/logs/trackerd.log ]; do
2929
sleep 1
3030
done
31-
tail -f /home/dfs/logs/trackerd.log
31+
tail -f /opt/fastdfs/logs/trackerd.log
3232
elif [ "${FASTDFS_MODE}" = "storage" ];
3333
then
3434
echo "start storage and nginx"
3535
# Start the storage and nginx
3636
/usr/local/bin/fdfs_storaged start && /usr/local/nginx/sbin/nginx
3737
# Wait for the log file to be generated
38-
while [ ! -f /home/dfs/logs/storaged.log ]; do
38+
while [ ! -f /opt/fastdfs/logs/storaged.log ]; do
3939
sleep 1
4040
done
41-
tail -f /home/dfs/logs/storaged.log
41+
tail -f /opt/fastdfs/logs/storaged.log
4242
else
4343
echo 'You need to choose the "FASTDFS_MODE"'
4444
fi

0 commit comments

Comments
 (0)