centos 7 安装 imc
注意:安装的时候必须选择图形化安装。即安装系统的时候,“软件选择”那块选择“带 GUI 的服务器”。
关闭 selinux 和 防火墙
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
sed -i "s/^SELINUX=permissive/SELINUX=disabled/g" /etc/sysconfig/selinux
sed -i "s/^SELINUX=permissive/SELINUX=disabled/g" /etc/selinux/config
安装 MariaDB
1.1 下载 MariraDB rpm包
下载:https://mariadb.com/downloads/
我这边下载的是10.5.25版本,下载完成后上传到服务器/opt文件夹
2.1 解压压缩包
cd /opt
tar -xf mariadb-10.5.25-rhel-7-x86_64-rpms.tar
rm -f mariadb-10.5.25-rhel-7-x86_64-rpms.tar
3.1 配置 yum repo 源
vi /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = file:///opt/mariadb-10.5.25-rhel-7-x86_64-rpms/
gpgcheck = 0
3.2 安装
yum install -y MariaDB-server
启动 Mariadb 服务,配置数据库密码
1.1 启动 Mariadb 服务
systemctl start mysql
systemctl enable mysql
2.1 修改身份验证插件,禁用匿名用户
mysql -uroot -p
## 修改身份验证插件,否则可以无密码登录
ALTER USER root@localhost IDENTIFIED VIA mysql_native_password;
## 删除匿名用户
DELETE from user where user=''
quit
3.1 修改数据库 root 密码
mysqladmin password CaiXuKun@123
安装依赖
1.1 联网的话可以直接通过 yum 安装:
yum install compat-libstdc++-33.i686
yum install nss-softokn-freebl.i686
yum install libaio.i686
yum install libgcc.i686
yum install glibc.i686
yum install libstdc++.i686
1.2 没联网的话可以导入 rpm 包,本地安装(有网络请忽略)
可以在另一台有网络的 Centos7.9 虚拟机上,下载这些 rpm 包,再上传到要安装 imc 的这台服务器
比较麻烦,使用以下命令下载:
yumdownloader --destdir=/root/imc_rpm --resolve compat-libstdc++-33.i686
yumdownloader --destdir=/root/imc_rpm --resolve nss-softokn-freebl.i686
yumdownloader --destdir=/root/imc_rpm --resolve libaio.i686
yumdownloader --destdir=/root/imc_rpm --resolve libgcc.i686
yumdownloader --destdir=/root/imc_rpm --resolve glibc.i686
yumdownloader --destdir=/root/imc_rpm --resolve libstdc++.i686
然后将/root/imc_rpm
的 rpm 包导出,上传到这台服务器,然后使用 yum 安装
yum localinstall *.rpm
修改 my.cnf
vi /etc/my.cf
:
[client]
port= 3306
loose-local-infile=1
[mysqld]
port= 3306
character-set-server = gbk
default-storage-engine = INNODB
skip-external-locking
key_buffer_size = 384M
max_allowed_packet = 200M
max_connections = 800
lower_case_table_names = 1
key_buffer_size = 384M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
innodb_buffer_pool_size = 512M
innodb_strict_mode=0
default_authentication_plugin = mysql_native_password
default-time-zone = '+8:00'
local_infile=1
[mysqldump]
quick
max_allowed_packet = 200M
[mysql]
no-auto-rehash
default_character_set = gbk
local_infile=1
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer_size = 2M
[mysqlhotcopy]
interactive-timeout
修改后重启 mariadb:systemctl restart mysql
安装 imc
上传 imc 软件包到服务器 /opt 目录,解压,并启动安装程序。
没有 unzip 命令的话用 yum 安装一下:yum install unzip -y
unzip H3C_iMC_PLAT_7.3_E0708_Standard.zip
cd H3C_iMC_PLAT_7.3_E0708_Standard
unzip H3C_iMC_PLAT_7.3_E0708_Standard_linux.zip
cd H3C_iMC_PLAT_7.3_E0708_Standard_linux/linux/install
sh install.sh
标签:Imc,--,安装,imc,i686,Centos7,yum,rpm,size
From: https://www.cnblogs.com/desireroot7/p/18343492