#!/bin/bash
source /etc/profile
service fdfs_trackerd start
service fdfs_storaged start
ln -s /home/yuqing/fastdfs/data/ /home/yuqing/fastdfs/data/M00
echo "172.21.218.42 fs.zhangewswj.work fs.zhangewswj.work" >> /etc/hosts & "172.21.218.42 www.zhangewswj.work www.zhangewswj.work" >> /etc/hosts & echo "172.21.218.43 db.zhangewswj.work db.zhangewswj.work" >> /etc/hosts & java -Xms64m -Xmx64m -jar demo-1.0-SNAPSHOT.jar