mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
21 lines
367 B
Bash
Executable File
21 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# start nginx
|
|
service nginx start
|
|
|
|
# start seaweedfs server
|
|
seaweedfsDataPath=/data/seaweedfs
|
|
if [ -e ${seaweedfsDataPath} ]; then
|
|
:
|
|
else
|
|
mkdir -p ${seaweedfsDataPath}
|
|
fi
|
|
weed server \
|
|
-dir /data \
|
|
-master.dir ${seaweedfsDataPath} \
|
|
-volume.dir.idx ${seaweedfsDataPath} \
|
|
-ip localhost \
|
|
-volume.port 9999 \
|
|
-filer \
|
|
>> /var/log/weed.log 2>&1 &
|