[root@localhost 2.x]# history 
    1  cd /etc/sysconfig/network-scripts/
    2  ls
    3  vi ifcfg-ens33 
    4  vi /etc/resolv.conf
    5  vi /etc/selinux/config 
    6  cd
    7  systemctl restart network
    8  systemctl enable network
    9  mount /dev/cdrom /mnt
   10  poweroff
   11  setenforce 
   12  getenforce 
   13  ifconfig 
   14  ping www.baidu.com
   15  yum repolist
   16  ls /etc/yum.repos.d/
   17  yum -y install epel-release
   18  yum -y install php
   19  yum -y install mariadb-server
   20  yum -y install graphviz
   21  yum -y install php-gd
   22  yum -y install php-mysqlnd
   23  yum -y install php-imap
   24   yum -y install php-soap
   25  yum -y install php-ldap
   26  yum -y install php-mbstring
   27  yum -y install php-mcrypt
   28  yum -y install php-pecl-zendopcache
   29   systemctl start httpd
   30  systemctl enable httpd
   31   systemctl start mariadb
   32  systemctl enable mariadb
   33  wget http://downloads.sourceforge.net/project/itop/itop/2.1.0/iTop-2.1.0-2127.zip
   34  ls
   35  unzip iTop-2.1.0-2127.zip -d /var/www/html/itop/
   36  ls -lh /var/www/html/itop/
   37  cd /var/www/html/itop/
   38  ls
   39  cd web/
   40  ls
   41  cd extensions/
   42  ls
   43  cd ..
   44  ls
   45  cd web/
   46  ls
   47  cd core/
   48  ls
   49  cd 
   50  find /  -name  2.x
   51  cd /var/www/html/itop/web/datamodels/2.x
   52  ls
   53  cp -r  itop-request-mgmt  itop-service-mgmt  itop-config   itop-change-mgmt   /var/www/html/itop/web/extensions/
   54  ls /var/www/html/itop/web/extensions/
   55  ifconfig | head -4
   56  mkdir /var/www/html/itop/web/log
   57  mkdir /var/www/html/itop/web/env-production
   58  mkdir /var/www/html/itop/web/conf
   59  mkdir /var/www/html/itop/web/data
   60  chown -R apache:apache /var/www/html/itop/web/log
   61  chown -R apache:apache /var/www/html/itop/web/env-production
   62  chown -R apache:apache /var/www/html/itop/web/conf
   63  chown -R apache:apache /var/www/html/itop/web/data
   64   ls -ld /var/www/html/itop/web
   65  ls -ld /var/www/html/itop/web/{conf,data,log,env-production}
   66  mysql
   67  mysql -uroot -p
   68   mysql -uroot -p
   69  systemctl restart httpd
   70  getenforce 
   71  ls 
   72  ls itop-change-mgmt-itil
   73  history 
   74  cp -r itop-change-mgmt-itil  /var/www/html/itop/web/extensions/
   75  ls -ld  /var/www/html/itop/web/extensions/
   76  chown -R apache:apache /var/www/html/itop/web/extensions/
   77  ls -ld  /var/www/html/itop/web/extensions/
   78  systemctl restart httpd
   79  yum -y install  php-mcrypt
   80  yum -y install libmcrypt
   81  mysql -uroot -p123456
   82  systemctl restart mariadb
   83  history 
Select additional extensions to install. You can launch the installation again to install new extensions, but you cannot remove already installed extensions.   //到这一步,如果之前有安装过itop就不勾选

思路:1、配置好网络 dhcp   虚拟机要设置桥接模式,连接   .iso镜像

                vi   /etc/sysconfig/network-scripts/ifcfg-ens33 

                ONBOOT=yes

           2、用于设置DNS服务器的IP地址及DNS域名,还包含了主机的域名搜索顺序

                vi      /etc/resolv.conf

                nameserver     8.8.8.8 

            3、vi     /etc/selinux/config

                 SELINUX=permissive      //永久生效

                 setenforce 0    //临时设置

            4、systemctl    start     network                     

                  systemctl    enable    network

            5、ping   www.baidu.com   //ok  

           6、心平气和开始表演,记得修改了配置文件要重启对应服务,ss  -tunlp  |   grep  查找服务有没有起来或systemctl  status    查询 

            7、如果物理机访问虚拟机的话,要配置好防火墙,我这里临时修改,访问OK

   systemctl stop firewalld   //  7版本禁用防火墙

   88  iptables  -L  -n
   89  iptables  -F
   90  iptables  -L  -n

http://192.168.0.134/itop/web/pages/preferences.php?   //登录成功

Logo

更多推荐