一個面向中小企業的、開源免費的、簡單易用的、類Jira的問題需求跟蹤工具
Github: https://github.com/lxerxa/actionview
ubuntu 16.04,php7.0,root用戶爲例
step 1
更新軟件源列表地址
apt-get update
安裝Nginx:
apt-get install -y nginx
安裝php以及相關組件。php建議安裝7.0,>=5.5.9其他版本也可以
apt-get install -y php7.0 php-fpm php-mbstring php-gd php-mcrypt php-curl php-dom php-zip php-ldap php-mongodb
如果安裝php-ldap不成功,可將php-ldap改成php5-ldap或php7.0-ldap
step 2
安裝mongodb(>=2.6.10):
apt-get install mongodb
啓動mongodb:
service mongodb start
創建數據庫和用戶:
mongo actionviewdb --eval “db.createUser({ user: ‘actionview’, pwd: ‘secret’, roles: [ { role: ‘readWrite’, db: ‘actionviewdb’ } ] });”
step 3
下載程序:
cd /var/www/
git clone https://github.com/lxerxa/actionview.git actionview
安裝依賴:
cd actionview
cp composer.phar /usr/local/bin/composer (如果composer已安裝請忽略此步)
composer install --no-dev
執行配置腳本:
sh config.sh
修改數據庫連接參數,在拷貝後的.env文件中,示例如下:
cp .env.example .env
DB_HOST=127.0.0.1
DB_DATABASE=actionviewdb
DB_USERNAME=actionview
DB_PASSWORD=secret
執行db數據初始化腳本:
mongorestore -h 127.0.0.1 -u actionview -p secret -d actionviewdb --drop ./dbdata
配置nginx(/etc/nginx/sites-enabled/default):
server {
listen 80;
listen [::]:80;
root /var/www/actionview/public;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name localhost;
client_max_body_size 50M;
if (!-d $request_filename) { rewrite ^(.*)/$ /$1 permanent; }
set $flag 0;
if (!-e $request_filename) { set $flag 1; }
if ($request_uri ~ ^/api) { set $flag 2; }
if ($flag = 1) { rewrite ^(.*)$ /index.html break; }
if ($flag = 2) { rewrite ^ /index.php break; }
location ~ /\.ht {
deny all;
}
location ~ \.php {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
try_files $uri =404;
}
}
重新啓動nginx和php-fpm:
service php7.0-fpm stop
service php7.0-fpm start
service nginx stop
service nginx start
step 4
安裝完成,祝好運!
訪問系統: http://xxx.xxx.xxx.xxx, 管理員登錄: user: [email protected], password: actionview
step 5
先不要着急,再做最後一步配置,以便能發mail通知、爲燃盡圖展示提供數據、自動同步LDAP用戶數據。
crontab裏添加:
* * * * * php /var/www/actionview/artisan schedule:run >> /dev/null 2>&1
重新啓動cron服務:
service cron restart