Góc Linux - Unix

How to install Minds

is an open-source, encrypted and reward-based social platform. Main website https://minds.com

Minds is split into multiple repositories:

  • Engine – Backend code & APIs
  • Front – Client side Angular2 web app
  • Sockets – WebSocket for real-time communication
  • Mobile – React Native mobile apps

Development System Requirements

10GB RAM

100GB Disk space

Disable SELinux

Docker Compose

Run this command to the latest version of Docker Compose:

# sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

  1. Use the latest Compose release number in the download command.

    The above command is an example, and it may become out-of-date. To ensure you have the latest version, check the Compose repository release page on GitHub.

    If you have problems installing with curl, see Alternative Install Options tab above.

  2. Apply executable permissions to the binary:
    # sudo chmod +x /usr/local/bin/docker-compose
    
  3. Optionally,  command completion for the bash and zsh shell.
  4. Test the installation.
    # docker-compose --version
    docker-compose version 1.21.2, build 1719ceb
    Install docker
    
    # wget https://download.docker.com/linux//docker-ce.repo
    # mv docker-ce.repo  /etc/.repos.d/
    #  install docker-ce
    # service docker start
    
    Clone Mind Github
    
    $ yum install git
    # git clone https://github.com/Minds/minds
    # cd minds

    Development Installation

    1. Run sh init.sh in order to install the front and engine repositories
    2. Run docker-compose up -d nginx
    3. Run docker-compose exec nodetool enablethrift
    4. Run docker-compose up installer (one time only.. initial username: minds / password: password)
    5. Run docker-compose up front-build
    6. Navigate to http://localhost:8080

    Got problem “ERROR: error parsing HTTP 408 response body: invalid character…”, fix this error by running

    # ifconfig eth1 mtu 1500 up

    • Minds is already installed
      • Ensure engine/settings. does not exist and re-run docker-compose up installer
    • Cassandra will not boot
      • Ensure thrift is enabled
      • Cassandra requires at least 4GB of memory to operate. You can start Cassandra manually by running docker-compose up cassandra

    Production System Requirements

    At this time it is not advisable to run Minds in production, however it is possible so long as you are aware of the risks.

    • 3 Cassandra Nodes (Min 30gb RAM, 1TB SSD, 8 CPU)
    • 1 Node (Min 16GB RAM, 250GB SSD, 8 CPU) #2 nodes are recommended for failover
    • 1 Docker Machine (Min 60gb RAM, 50GB SSD, 32 CPU)
Print Friendly, PDF & Email

Comments

comments

Bài viết liên quan

Để lại lời nhắn