Giter Club home page Giter Club logo

adultscraperx-server-docker's Introduction

AdultScraperX-server-docker

AdultScraperX-server-docker

使用docker 和 docker-compose 构建 AdultScraperX-server

安装docker(如果已安装可跳过)

CentOS

sudo yum install -y yum-utils device-mapper-persistent-data lvm2  
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce

Ubuntu

sudo apt-get update  
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"  
sudo apt-get update  
sudo apt-get install -y docker-ce

设置docker服务启动并开机自启

systemctl start docker  
systemctl enable docker  

安装docker-compose(如果已安装可跳过)

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o   /usr/local/bin/docker-compose  
sudo chmod +x /usr/local/bin/docker-compose

安装 git (如果已安装可跳过)

Centos

yum install -y git

Ubuntu

sudo apt install git

clone 并启动项目

git clone https://github.com/chunsiyang/AdultScraperX-server-docker.git  
cd AdultScraperX-server-docker  
docker-compose up -d

初始化数据库

docker exec -it adultscraperx-mongo-db bash
mongo 127.0.0.1:27017/admin -u root -p adultscraperx
use adultscraperx
db.createUser({user:"adultscraperx",pwd:"adultscraperx",roles:[{role:"readWrite",db:"adultscraperx"}]})
db.createCollection("meta_cache");
db.createCollection("user");
exit
exit
docker-compose restart

adultscraperx-server-docker's People

Contributors

chunsiyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.