Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Docker Install #20

Open
parksungchan opened this issue Dec 26, 2017 · 0 comments
Open

Single Docker Install #20

parksungchan opened this issue Dec 26, 2017 · 0 comments

Comments

@parksungchan
Copy link
Contributor

1.install

yum install git
yum install django
python -m pip install django
pip install celery
pip install django_jenkins
pip install djangorestframework
pip install markdown
pip install django-filter
pip install django-rest-swagger
pip install django-cors-headers
pip install psycopg2
pip install konlpy
pip install opencv-python
pip install flower
pip install tqdm
pip install hanja
pip install fasttext
pip install tensorflow-tensorboard
pip install JPype1
pip install gensim
conda install mkl
pip install keras
pip install ngram
pip install wget
pip install keras --upgrade

  1. git clone
    ================================================================================
    cd /home/dev
    git clone https://github.com/TensorMSA/tensormsa.git
    ================================================================================
  2. postgres install
    ================================================================================
    yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm -y

yum -y install postgresql96 postgresql96-server postgresql96-contrib postgresql96-libs -y

/usr/pgsql-9.6/bin/postgresql96-setup initdb

vi /var/lib/pgsql/9.6/data/pg_hba.conf
local all all md5
host all postgres 127.0.0.1/32 md5

systemctl restart postgresql-9.6.service

su posgres
psql
ALTER USER postgres with password 'postgres';
alter user postgres WITH SUPERUSER PASSWORD 'postgres';

//테스트ned
//psql -U postgres

systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service

systemctl restart postgresql-9.6.service

  1. settings.py 수정.
    ================================================================================
    cd /home/dev/tensormsa/hoyai
    vi settings.py
    db -> localhost
    password : postgres
    CELERY_RESULT_BACKEND = 'db+postgresql://postgres:postgres@localhost'

./manage.py makemigrations
./manage.py migrate chatbot

./manage.py makemigrations chatbot
./manage.py migrate

  1. rabbitmq
    ================================================================================
    yum install rabbitmq-server
    systemctl start rabbitmq-server &

rabbitmqctl add_user admin mypass
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin '.' '.' '.*'

cd /home/dev/tensormsa/hoyai
vi settings.py
CELERY_BROKER_URL = 'amqp://admin:mypass@localhost//'

  1. celery&flower
    ================================================================================
    cd /home/dev/tensormsa
    celery -A hoyai worker -l info --concurrency=1 &
    flower -A hoyai &
    ================================================================================
  2. Memcash
    ================================================================================
    yum -y update
    yum -y install memcached
    vim /etc/sysconfig/memcached
    PORT=”11211″
    USER=”memcached”
    MAXCONN=”1024″
    CACHESIZE=”64″
    OPTIONS=””
    systemctl restart memcached
    systemctl start memcached
    systemctl enable memcached
    ================================================================================
  3. ui
    ================================================================================
    cd /home/dev/tensormsa/gui/static
    yum install npm
    npm install
    npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant