1.编写脚本:
vi itop_deploy.sh
yum -y install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install httpd graphviz php56-php php56-php-gd php56-php-mysqlnd php56-php-imap php56-php-soap php56-php-ldap php56-php-mbstring php56-php-mcrypt php56-php-pecl-zendopcache php56-php-xml
wget https://jaist.dl.sourceforge.net/project/itop/itop/2.6.1/iTop-2.6.1-4463.zip
yum -y install Mariadb-server
cat <>/etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
END
yum install MariaDB-client MariaDB-server MariaDB-devel -y
systemctl start httpd mariadb
mkdir -p /var/lib/php/session
chown -R apache:apache /var/lib/php/session
yum -y install unzip
unzip iTop-2.6.1-4463.zip
mv web /var/www/html/itop
mkdir -p /var/www/html/itop/{conf,data,log,env-production,env-production-build}
chown -R apache:apache /var/www/html/itop/{conf,data,log,env-production,env-production-build}
mysql <create database itop DEFAULT CHARACTER SET utf8;
grant all on itop.* to 'itop'@'localhost' identified by 'itoppassword';
flush privileges;
END
mysql -uitop -pitoppassword
systemctl restart httpd mariadb
systemctl enable httpd mariadb
:wq
2.部署安装itop:
sh -x itop_deploy.sh
访问:http://ip/itop
进行安装设置。
连网在线安装itop:在阿里云购买ECS测试通过。_第1张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第2张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第3张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第4张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第5张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第6张图片
连网在线安装itop:在阿里云购买ECS测试通过。_第7张图片

连网在线安装itop:在阿里云购买ECS测试通过。_第8张图片