作者:蓝眼泪
实验环境:centos7.9,xshell7,itop2.6.1开源软件,win10操作系统,vm15虚拟机。
1 下载链接
? 2.6.0版本:
https://nchc.dl.sourceforge.net/project/itop/itop/2.6.0/iTop-2.6.0-4294.zip?
? 2.6.1版本:
https://jaist.dl.sourceforge.net/project/itop/itop/2.6.1/iTop-2.6.1-4463.zip?
2 安装lamp及相关组件
yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum -y install httpd graphviz unzip mod_ssl mysql mysql-server php72w php72w-gd php72w-mysql php72w-imap php72w-soap php72w-ldap php72w-mbstring php72w-pecl-zendopcache php72w-xml php72w-cli
3 开启防火墙、关闭selinux
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
vim /etc/selinux/config ?
SELINUX=disabled
4 创建PHP目录并配置权限
mkdir -p /var/lib/php/session
chown apache:apache -R /var/lib/php/session/
5 启动httpd、mariadb服务
systemctl start httpd
systemctl start mysqld
systemctl enable httpd
systemctl enable mysqld
6 创建数据库、创建库用户、用户授权、修改数据配置
mysql -u root -p?
create database itop DEFAULT CHARACTER SET utf8;
create user itop@localhost identified by '123456';
grant all privileges on *.* to itop@'localhost' identified by '123456';
flush privileges;
exit
vi /etc/my.conf
max_allowed_packet=1048576 //允许上传包的最大值
7 上传iTop网站到/var/www/iTop目录
wget https://nchc.dl.sourceforge.net/project/itop/itop/2.6.1/iTop-2.6.1-4463.zip
mkdir -p /var/www/html/{conf,data,log,env-production}
chown -R apache:apache /var/www/html
cd /var/www/html
unzip /usr/local/iTop-2.6.1-4463.zip
8 WEB安装过程
http://192.168.1.102/web/setup/index.php
用户名:admin
密码:123456
|