忙贬 发表于 2025-6-1 20:25:37

centos7安装搭建部署iTop管理系统并集成一键shell脚本

一、系统准备阶段

1. 系统更新与基础工具

# 更新系统并安装必要工具
yum update -y
yum install -y epel-release wget curl unzip vim git
2. 禁用SELinux(生产环境建议单独配置)

setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
二、LAMP环境部署

1. Apache安装

yum install -y httpd
systemctl start httpd
systemctl enable httpd
2. MariaDB安装

yum install -y mariadb-server mariadb
systemctl start mariadb
systemctl enable mariadb
3. PHP 7.4安装(需Remi仓库)

yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php74
yum install -y php php-mysqlnd php-gd php-ldap php-xml php-mbstring php-json php-cli php-soap php-zip
 三、数据库配置

1. 安全加固MySQL


mysql_secure_installation

幽淆 发表于 2025-11-5 16:01:10

感谢分享

刘凤 发表于 2025-11-10 01:17:49

谢谢分享,辛苦了

锺冰洁 发表于 2025-12-2 12:40:58

热心回复!

供挂 发表于 2025-12-4 07:29:33

很好很强大我过来先占个楼 待编辑
页: [1]
查看完整版本: centos7安装搭建部署iTop管理系统并集成一键shell脚本