• 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

    根据自己的运维管理需求选择安装的流程

  • 相关阅读:
    创建线程的三种方式
    SpringMVC:拦截器和POST中文乱码问题
    SpringMVC:静态资源访问
    SpringMVC :转发、重定向、RedirectAttributes
    SpringMVC:Controller的编写
    SpringMVC——DispatcherServlet
    SpringMVC的执行流程
    第一个SpringMVC程序(注解实现)
    第一个SpringMVC程序
    springsecurity学习
  • 原文地址:https://www.cnblogs.com/xiaoleimagic/p/15899674.html
Copyright © 2020-2023  润新知