700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > lamp部署itop3.0

lamp部署itop3.0

时间:2023-07-31 23:17:16

相关推荐

lamp部署itop3.0

# 1.基础环境

systemctl stop firewalld && systemctl disable firewalldsetenforce 0sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/configinit 6yum install -y yum-utils device-mapper-persistent-data lvm2 wget net-tools nfs-utils lrzsz gcc gcc-c++ make cmake libxml2-devel openssl-devel curl curl-devel unzip sudo ntp libaio-devel wget vim ncurses-devel autoconf automake zlib-devel python-devel epel-release openssh-server socat ipvsadm conntrack ntpdate telnet ipvsadm

2.mysql

#添加 MySQL Yum 存储库wget /get/mysql80-community-release-el7-5.noarch.rpmyum install -y mysql80-community-release-el7-5.noarch.rpm#安装mysql yum repolist all | grep mysqlyum-config-manager --enable mysql57-communityyum-config-manager --enable mysql57-community-sourceyum-config-manager --disable mysql80-communityyum install mysql-community-server -y#启动myqslsystemctl enable mysqld --now #设置为开机自启并现在启动grep 'temporary password' /var/log/mysqld.log #查看临时密码mysql -uroot -p #登陆alter user 'root'@'localhost' identified by '123456Qqw!'; #修改密码set global validate_password_policy=0;set global validate_password_length=0;alter user 'root'@'localhost' identified by '000000';GRANT ALL PRIVILEGES ON *.* TO 'iTop'@'%' IDENTIFIED BY '123456';FLUSH PRIVILEGES;#迁移数据盘mkdir -p /data/mysqlsystemctl stop mysqldcp -a /var/lib/mysql /data/mysql/cd /etccp f fbakvim /etc/fdatadir=/data/mysql/mysqlsystemctl start mysqldmysql -uroot -p000000show variables like '%dir%';+-----------------------------------------+----------------------------+| Variable_name | Value |+-----------------------------------------+----------------------------+| basedir | /usr/ || binlog_direct_non_transactional_updates | OFF || character_sets_dir | /usr/share/mysql/charsets/ || datadir | /data/mysql/mysql/ || ignore_db_dirs| || innodb_data_home_dir| || innodb_log_group_home_dir| ./|| innodb_max_dirty_pages_pct | 75.000000 || innodb_max_dirty_pages_pct_lwm| 0.000000 || innodb_tmpdir | || innodb_undo_directory | ./|| lc_messages_dir| /usr/share/mysql/|| plugin_dir| /usr/lib64/mysql/plugin/ || slave_load_tmpdir | /tmp || tmpdir | /tmp |+-----------------------------------------+----------------------------+15 rows in set (0.00 sec)mysql> status;--------------mysql Ver 14.14 Distrib 5.7.37, for Linux (x86_64) using EditLine wrapper

4.apache

yum install -y httpd && systemctl enable httpd --now

5.php

yum install /enterprise/remi-release-7.rpm -yyum repolist all | grep phpyum-config-manager --enable remi-php74yum -y install php php-dom php-xml php-gd php-mysqli php-soap php-mbstring php-zip php-ldapyum install -y graphviz

6.itop

wget /projects/itop/files/itop/3.0.0/iTop-3.0.0-8663.zip --no-check-certificateunzip iTop-3.0.0-8663.zip -d /var/www/html/itopchown -R apache:apache /var/www/html/itopyum install -y graphvizsystemctl restart httpd浏览器访问根据引导页面安装

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。