超好用的开源 IP 地址管理系统,告别传统 Excel 统计方式!
开源Linux
共 1826字,需浏览 4分钟
·
2022-05-20 07:41
来自:释然IT杂谈
1、设置系统环境和安装依赖包
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config && reboot
②关闭防火墙
systemctl stop firewalld
③安装依赖包
yum install epel-release -y
yum install wget vim net-tools httpd mariadb-server php php-cli php-gd php-common php-ldap php-pdo php-pear php-snmp php-xml php-mysql php-mbstring git -y
2、配置和运行 Apache
ServerName localhost:80
<Directory "/var/www/html"> #修改目录设置以允许mod_rewrite URL重写
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
#Require all granted
Directory>
②检查配置文件,显示 OK 状态为正常
httpd -t -f /etc/httpd/conf/httpd.conf
③修改/etc/php.ini配置文件的时区为Asia/Shanghai
date.timezone = Asia/Shanghai
#开机启动Apache
systemctl enable httpd
#启动Apache
systemctl start httpd
#启动mariadb
systemctl start mariadb
#开机启动mariadb
systemctl enable mariadb
②初始化mariaDB,配置好密码
mysql_secure_installation
cd /var/www/html/
git clone https://github.com/phpipam/phpipam.git .
git checkout 1.4
②文件权限配置
chown apache:apache -R /var/www/html/
③拷贝必要文件到相关目录
cp /var/www/html/config.dist.php /var/www/html/config.dist.php.bak
mv /var/www/html/config.dist.php /var/www/html/config.php
④编辑/var/www/html/config.php文件
define('BASE', "/phpipam"); #修改这行
systemctl restart httpd
5、配置phpipam
①选择新的phpipam安装
② 安装pfpipam数据库
③设置数据库
④填写系统初始化信息
②修改 admin 语言,改成中文(如图操作),修改后需要退出重新登陆
③子网创建(添加),默认会自带一些测试子网,可以手动删除
④子网页面预览
有收获,点个在看
评论