1. 安装apache yum install httpd 2. 安装mysql wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server #开启MySQL服务 systemctl start mysqld.service #查看MySQL状态 systemctl status mysqld.service #获取密码 grep "password" /var/log/mysqld.log #使用密码登陆 mysql -uroot -p #修改密码长度规则 mysql> set global validate_password_policy=0; mysql> set global validate_password_length=1; #修改root密码 ALTER USER 'root'@'localhost' IDENTIFIED BY '111111'; 创建新用户: CREATE USER 'bugfree'@'localhost' IDENTIFIED BY '123456'; 新用户授权: grant all privileges on *.* to bugfree@localhost identified by '123456'; 3. 安装PHP yum install php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc 4. 安装PHP加密算法插件 yum install libmcrypt yum install php-mcrypt 注:libmcrypt是加密算法扩展库,php-mcrypt是Mcrypt对PHP的一个扩展www.linuxidc.com 下载解压 重命名解压后的文件:mv bugfree3 bugfree 把bugfree放到apache的DocumentRoot:mv bugfree /var/www/html/ 创建附件上传目录: cd /var/www/html/ mkdir BugFile 改变bugfree的读写权限:chmod -R 777 bugfree 改变BugFile的读写权限:chmod -R 777 BugFile vi /etc/httpd/conf/httpd.conf 修改默认端口号 Listen 80 --> Listen 7999 启动httpd服务: service httpd start 浏览器访问http://<servername>:port/bugfree/install 例如:http://192.168.31.20:7999/bugfree/install 按照提示配置bugfree关联的数据库 注:要在root权限下操作,即用root登陆或者sudo来操作 完成安装,进入BugFree 初始用户名: admin 初始密码:123456 参考: https://www.cnblogs.com/nicknailo/articles/8563737.html https://www.linuxidc.com/Linux/2012-06/62171.htm