一.搭建LNMP環境,參考centos7 LNMP環境搭建文檔
二.安裝mantis
# cd /usr/local/src
# rz
# tar -zxvf mantisbt-2.19.0.tar.gz
# mv mantisbt-2.19.0 /www/mantis
# chmod -R 777 /www/mantis
# mysql -u root -p
mysql>create database mantis;
mysql>CREATE USER 'mantis'@'%' IDENTIFIED BY '2DYSsLB%';
mysql>GRANT ALL PRIVILEGES ON *.* TO 'mantis'@'%' WITH GRANT OPTION;
mysql>flush privileges;
mysql>quit;
瀏覽器訪問安裝頁面
安裝如下截圖進行勾選或填寫
填寫完成後點擊Install/Upgrade Database
安裝完成後刪除admin目錄。重啓服務
# cd /www/mantis
# rm -rf admin
# systemctl restart nginx.service