-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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
- git clone
================================================================================
cd /home/dev
git clone https://github.com/TensorMSA/tensormsa.git
================================================================================ - 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
- 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
- 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//'
- celery&flower
================================================================================
cd /home/dev/tensormsa
celery -A hoyai worker -l info --concurrency=1 &
flower -A hoyai &
================================================================================ - 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
================================================================================ - ui
================================================================================
cd /home/dev/tensormsa/gui/static
yum install npm
npm install
npm run build
Metadata
Metadata
Assignees
Labels
No labels