centos7安装itop
适用于itop2.6以上版本,版本下载:www.itophub.io
准备
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
vi /etc/selinux/config #修改为SELINUX=disabled,重启后生效
SELINUX=disabled
程序安装
安装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 php72w php72w-gd php72w-mysql php72w-imap php72w-soap php72w-ldap php72w-mbstring php72w-pecl-zendopcache php72w-xml php72w-cli
创建PHP会话目录,配置目录权限
mkdir -p /var/lib/php/session
chown apache:apache -R /var/lib/php/session/
启动apache
systemctl start httpd
systemctl enable httpd
上传iTop网站程序 /var/www/itop
mkdir -p /var/www/html/{conf,data,log,env-production}
chown -R apache:apache /var/www/html
unzip iTop-2.7.5-1-7770.zip
mv web /var/www/html/itop
chown -R apache.apache /var/www/html/itop
chmod -R 755 /var/www/html/itop
安装数据库
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y localinstall mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql-community-server
修改数据库配置文件,启动httpd、mariadb服务
vi /etc/my.cnf
max_allowed_packet=2097652
systemctl start mysqld
systemctl enable mysqld
创建数据库、创建库用户、用户授权 在/var/log/mysqld.log
中找到root的临时密码
[root@tencent ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.36 MySQL Community Server (GPL)
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPass123!';
mysql> create database itop DEFAULT CHARACTER SET utf8;
mysql> create user itop@localhost identified by 'iTop123!';
mysql> grant all privileges on *.* to itop@'localhost' identified by 'iTop123!';
mysql> flush privileges;
mysql> exit
页面安装配置
浏览器打开http://YOUR_IP/iTop/setup/index.php
选择Install a new iTop
选择I accept the terms of the licenses of the 63 components mentioned above. NEXT
Database Server Connection Server Name:localhost Login:itop Password:iTop123! Use the existing database:itop
设置Administrator Account
根据自己的运维管理需求选择安装的流程
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术