You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
679 B
26 lines
679 B
#!/bin/bash
|
|
|
|
new_val=$FASTDFS_IPADDR
|
|
old="com.ikingtech.ch116221"
|
|
|
|
sed -i "s/$old/$new_val/g" /etc/fdfs/client.conf
|
|
sed -i "s/$old/$new_val/g" /etc/fdfs/storage.conf
|
|
sed -i "s/$old/$new_val/g" /etc/fdfs/mod_fastdfs.conf
|
|
|
|
cat /etc/fdfs/client.conf > /etc/fdfs/client.txt
|
|
cat /etc/fdfs/storage.conf > /etc/fdfs/storage.txt
|
|
cat /etc/fdfs/mod_fastdfs.conf > /etc/fdfs/mod_fastdfs.txt
|
|
|
|
mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.t
|
|
cp /etc/fdfs/nginx.conf /usr/local/nginx/conf
|
|
|
|
echo "start trackerd"
|
|
/etc/init.d/fdfs_trackerd start
|
|
|
|
echo "start storage"
|
|
/etc/init.d/fdfs_storaged start
|
|
|
|
echo "start nginx"
|
|
/usr/local/nginx/sbin/nginx
|
|
|
|
tail -f /dev/null
|