启动docker
sudo docker run -dit --name tracker --network=host -v /var/fdfs/tracker:/var/fdfs delron/fastdfs tracker
sudo docker run -dti --name storage --network=host -e TRACKER_SERVER=192.168.219.131:22122 -v /var/fdfs/storage:/var/fdfs delron/fastdfs storage
sudo docker run -dti --name=elasticsearch --network=host -v /home/jesper/桌面/elasticsearch-2.4.6/config:/usr/share/elasticsearch/config delron/elasticsearch-ik:2.4.6-1.0
sudo docker run --name mysql-slave -e MYSQL_ROOT_PASSWORD=mysql -d --network=host -v /home/jesper/mysql_slave/data:/var/lib/mysql -v /home/jesper/mysql_slave/mysql.conf.d:/etc/mysql/mysql.conf.d mysql:5.7.30
手动生成初始索引
python manage.py rebuild_index
uwsgi --ini uwsgi.ini
uwsgi --stop uwsgi.pid
sudo service nginx restart
sudo nginx -s stop