Coder Social home page Coder Social logo

mis's Introduction

SETUP NGINX

sudo apt-get update sudo apt-get install nginx

cd ../etc rm -rf nginx git clone https://github.com/kingasawa/nginx.git

INSTALL SSL LET'S ENCRYPT

  • Clone Let's Encrypt repository git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

  • Stop Nginx service nginx stop

  • Install Let's Encrypt /opt/letsencrypt/certbot-auto certonly --standalone

  • Auto renew EDITOR=nano crontab -e

30 2 * * * /opt/letsencrypt/certbot-auto renew --pre-hook "service nginx stop" --post-hook "service nginx start" >> /var/log/le-renew.log

INSTALL NVM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash nvm install v8.11.3 nvm use v8.11.3

#INSTALL PM2 npm install pm2 -g

INSTALL DOCKER

apt install docker.io

DOCKER RUN REDIS

docker run --name redis
--net=host
--restart=always
-d
redis redis-server

INSTALL POSTGRES

sudo apt-get install postgresql postgresql-contrib sudo -i -u postgres psql CREATE USER nicecode with PASSWORD 'Tu)!Tr#H4ck'; CREATE DATABASE misdb; GRANT ALL PRIVILEGES ON DATABASE misdb TO nicecode;

updatedb locate postgresql.conf

FIX CONNECTION : https://blog.bigbinary.com/2016/01/23/configure-postgresql-to-allow-remote-connection.html -> sudo service postgresql restart

PULL CODE

git clone npm i

mis's People

Contributors

kingasawa avatar khanhtranicd avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.