百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 技术文章 > 正文

phpipam地址管理(php配置站点)

nanshan 2025-02-03 14:20 7 浏览 0 评论


原创 SY小站 SY技术小站


01

简介

phpipam是一个开源Web IP地址管理应用程序(IPAM)。其目标是提供轻便,现代且有用的IP地址管理。它是基于PHP的应用程序,具有MySQL数据库后端,使用jQuery库,ajax和HTML5 / CSS3功能。

02

安装前环境配置

配置主机文件



vi /etc/hosts10.16.16.13 phpipam.sy.local phpipam

安装依赖模块 Web server、Database 组件


yum install 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

设置时区






vi /etc/php.ini[Date]; Defines the default timezone used by the date functions; http://php.net/date.timezonedate.timezone = Asia/Shanghai

启动 Apache Web Server 并设置开机启动



systemctl start httpdsystemctl enable httpd

启动 MySQL (MariaDB) database server



systemctl start mariadbsystemctl enable mariadb

配置 Apache Web Server







/etc/httpd/conf/httpd.conf<Directory "/var/www/html">  AllowOverride all  Order allow,deny  Allow from all</Directory>


初始化数据库设置




























mysql_secure_installationDisallow root login remotely? [Y/n] y ... Success!By default, MariaDB comes with a database named 'test' that anyone canaccess.  This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n] y ... Success!Cleaning up...All done!  If you've completed all of the above steps, your MariaDBinstallation should now be secure.Thanks for using MariaDB!


03

安装phpIPAM

从 git 下载 phpIPAM 文件





cd /var/www/html/git clone https://github.com/phpipam/phpipam.git phpipamcd phpipamgit checkout 1.4

让 apache 用户有权限访问 phpipam





chown apache:apache -R /var/www/html/cd /var/www/html/find . -type f -exec chmod 0644 {} \;find . -type d -exec chmod 0755 {} \;

然后配置数据库链接要做到这一点,我们首先需要将示例配置文件复制到phpipam使用的config.php



cp /var/www/html/phpipam/config.dist.php /var/www/html/phpipam/config.dist.php.bakmv /var/www/html/phpipam/config.dist.php /var/www/html/phpipam/config.php















vim /var/www//html/phpipam/config.php/** * database connection details ******************************/$db['host'] = 'localhost';$db['user'] = 'phpipam_user';$db['pass'] = 'phpipam_Pass';$db['name'] = 'phpipam_db';$db['port'] = 3306;/**if(!defined('BASE'))define('BASE', "/phpipam/");

重启 http 服务


systemctl restart httpd

访问

自动安装并设置密码

03

效果

登录


最终界面

简单功能说明

















PHPIPAM Settings:设置PHPIPAM系统本身的一些配置,站点名称、语言、配色方案、一些功能模块的开关。Users:设置本地用户,添加、删除,编辑。Groups:设置本地用户组。Authentication methods:设置认证方式,支持本地认证、常用的AD、LDAP、Radius,NetIQ和SAML2笔者也没听过。。Mail settings:设置SMTP服务器,即当IPAM需要发邮件的时候使用哪个SMTP server。<br/>API:懂编程的同学可以研究一下了。Scan agens:使用什么agent来扫描网中的IP。Section:即我们可以根据业务或其他属性将IP地址分section来进行管理,例如数据网,语音网,或者数据中心网,办公网等。Subnets:已经可以在这里面创建网段了,然后大网段下再划分明细网段。下面有一个Device Management,可以做为一个小的资源管理系统来用,即你的设置在哪个楼哪个机房哪个RACK的哪个U上。最后支持中文,可以调整中文语言


END


往期精彩文章

  • ingress-nginx传输加密与认证
  • ingress高可用
  • k8s二进制升级从1.14.2至1.16.2
  • k8s集群curl service的ip延迟响应高
  • k8s集群数据备份与恢复
  • ingress-nginx持久化日志
  • ingress-nginx金丝雀发布
  • ingress-nginx高级金丝雀发布
  • ingress自动化https
  • prometheus查询
  • k8s二进制1.14版本添加node节点
  • kubeadm高可用集群安装

参考链接

  • https://phpipam.net/news/phpipam-installation-on-centos-7/

相关推荐

微软发布Win11/10 ISO镜像Defender更新,提升系统初始安全性

IT之家7月27日消息,除了Setup及WinRE更新外,NeoWin发现微软本周还针对Windows11/10/Server安装镜像发布了新的Defender安全智能...

微软革新Windows装机体验:内置应用全面升级,安全与便捷双提升

Windows内置应用迎来重大变革:更安全、更快速的初始体验如果您曾亲自安装过Windows11,或许注意到其内置应用并非开箱即用,而是一些占位程序,需要首次运行时从微软应用商店(Microsoft...

Hotpatch继续扩展 现在更多Windows PC在更新后无需重启

Windows11最近从其服务器版本中获得了一项非常重要的功能:Windows热补丁。该功能旨在通过允许操作系统在无需重启的情况下安装重要的安全更新来最大限度地减少停机时间和中断。最初,微软在...

微软承认Windows Server六月更新存在BUG:导致DHCP服务器故障

IT之家6月17日消息,科技媒体WindowsLatest今天(6月17日)发布博文,报道称微软承认6月WindowsServer更新存在BUG,可能导致DHCP服...

Windows Server2019安装Hyper-V的2个简单方法!

关于WindowsServer2019WindowsServer2019是微软发布的服务器操作系统,是WindowsServer2016的后续版本。它包含了许多新的特性和改进,适用于数据中心...

如何在不满足系统要求的旧计算机上安装 Windows 11 24H2

如果你想了解这个安装工具以及安装方法(老飞摄影微信公众号内提供安装包下载),请完整的看完后面的文字,以避免在安装过程当中出现问题。Windows11通常需要某些硬件功能,例如TPM和安全启动,...

第 137 期:微软表示 Windows 11 24H2 是迄今为止最稳定的版本

就在刚刚,微软“大言不惭”地声称,Windows1124H2是迄今为止最可靠的Windows版本。我们并不是说它很糟糕,因为我们每天的工作中也在使用它。上述言论只是一份微软的一份官方文件的一...

Windows 11 将推出带有“高级”选项的新设置页面

Windows11即将迎来一个包含一些高级功能的全新“设置”页面。严格来说,它并非全新功能。它更像是“开发者”栏目的重新设计,用户和开发者可以在其中调整各种附加功能。微软可能明白这些东西不仅对开发...

Windows server 2025 重复数据删除

一、概述windowsserver中的重复数据删除功能从windowsserver2012就开始支持了。Windowsserver中默认没有安装重复数据删除功能。在磁盘分区(卷)上启用重复...

Windows Server 2025预览版迎来更新,微软改善Insiders测试体验

在发布WindowsServer的build26040版本之际,微软公布了该产品的官方名称:WindowsServer2025。一同推出的,还有Windows11WindowsInsid...

升不升?Win11 24H2大范围推送了

微软在其官方支持文档中宣布,24H2版现在已经开始向运行Windows11原始版本、22H2和23H2版的合格设备推送。Windows11的24H2更新现已进入新的可用性阶段,这意味着更多符合条件...

微软发布Win11/10/Server安装镜像Defender更新

IT之家6月22日消息,继上个月为Lumma发布更新后,微软本月也为Windows11/10/Server安装镜像发布了新的Defender更新。此更新包很有必要,因为Wi...

第 81 期:微软最近的更新给 Windows Server 带来了 DHCP 问题

近日,微软确认,DHCP服务器服务可能会在WindowsServer安装2025年6月更新后停止响应或拒绝连接。DHCP问题会影响WindowsServer2025(KB50...

windws server 2012 R2 虚拟机windows server2019 经常断网事件

故障现象:在windowsserver2012R2的虚拟主机上面搭建一个Windowsserver2019的虚拟机系统用来做域控。安装完设置好防火墙和IP,经过测试是可以ping同正常访问...

微软扩展热补丁部署,现覆盖ARM架构Win11 24H2设备

IT之家7月9日消息,科技媒体NeoWin今天(7月9日)发布博文,报道称微软扩大热补丁(WindowsHotpatching)覆盖范围,在AMD和英特尔处理器设备外,现覆盖支...

取消回复欢迎 发表评论: