centos7 安裝項目管理軟件Taiga

環境: 2核處理器,4G內存,30G存儲

條件: python3.5, postgreSql9.5

 安裝必要的組件:

 yum -y install gcc gcc-c++ make openssl-devel binutils autoconf flex bison libjpeg-devel freetype-devel zlib-devel perl-ZMQ-LibZMQ3 gdbm-devel ncurses-devel automake libtool libffi-devel curl git tmux gettext

安裝EPEL存儲庫

yum -y install epel-release

安裝python3.5

yum install -y https://centos7.iuscommunity.org/ius-release.rpm

yum -y install python35u python35u-pip python35u-devel python-devel python-pip python-virtualenvwrapper libxml2-devel libxslt-devel

安裝nginx

yum -y install nginx

systemctl start nginx
systemctl enable nginx

檢查打開的端口

netstat -plntu

安裝Redis和RabbitMQ

yum -y install rabbitmq-server redis

systemctl start rabbitmq-server
systemctl enable rabbitmq-server
(可能會出現問題,

[root@taiga sysconfig]# systemctl start rabbitmq-server
Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
我的問題是因爲新安裝的系統,沒有修改hostname :  

[root@taiga sysconfig]# vim /etc/hosts

192.168.56.128  taiga

修改完成之後,重新啓動rabbitmq-server 成功

)
systemctl start redis
systemctl enable redis

需要爲RabbitMQ創建一個名爲'taiga'的新用戶和虛擬主機,它將用於'taiga-events'。

運行以下命令創建名爲'taiga'的新用戶和虛擬主機,並輸入密碼'taiga',然後設置'taiga'用戶的權限。

rabbitmqctl add_user taiga taiga
rabbitmqctl add_vhost taiga
rabbitmqctl set_permissions -p taiga taiga ".*" ".*" ".*"

安裝Nodejs

aiga-events”需要節點 - 添加nodejs nodesource存儲庫並使用yum命令進行安裝。

curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
sudo yum -y install nodejs

 

系統上安裝了Taiga.io安裝所需的所有基本軟件包。

 

 

安裝和配置PostgreSQL

Taiga.io是基於Python Django Web框架的Web應用程序,它使用PostgreSQL作爲數據庫。需要安裝PostgreSQL 9.5版本的Taiga.io。

將PostgreSQL 9.5存儲庫添加到系統中。

 rpm -Uvh https://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm

安裝postgresql9.5
yum -y install postgresql95 postgresql95-devel postgresql95-contrib postgresql95-docs postgresql95-server

初始化數據庫

/usr/pgsql-9.5/bin/postgresql95-setup initdb

systemctl start postgresql-9.5
systemctl enable postgresql-9.5

 

su - postgres

createuser taiga
createdb taiga -O taiga

 

添加Taiga用戶

 

useradd -U -m -s /bin/bash taiga
passwd taiga

usermod -a -G wheel taiga

添加taiga的sudo訪問權限

su - taiga
sudo su

安裝taiga-back

使用taiga 用戶下載taiga-back

su - taiga
git clone https://github.com/taigaio/taiga-back.git taiga-back

現在進入'taiga-back'目錄並將分支改爲'stable'分支。

cd taiga-back
git checkout stable

 pip install --upgrade virtualenv

mkvirtualenv -p /usr/bin/python3.5 taiga

ln -s /usr/pgsql-9.5/bin/pg_config /usr/bin/pg_config

workon taiga
pip install -r requirements.txt

初始基本數據填充數據庫

python manage.py migrate --noinput
python manage.py loaddata initial_user
python manage.py loaddata initial_project_templates
python manage.py compilemessages
python manage.py collectstatic --noinput

這些命令將自動創建一個密碼爲“ 123123 ”的管理員帳戶' admin '。

未完 待續

 

參考網址“ :”https://www.howtoing.com/how-to-install-and-configure-taigaio-on-centos-7

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章