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 组件
yuminstallhttpdmariadb-serverphpphp-cliphp-gdphp-commonphp-ldapphp-pdophp-pearphp-snmpphp-xmlphp-mysqlphp-mbstringgit-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 httpdsystemctlenablehttpd
启动 MySQL (MariaDB) database server
systemctl start mariadbsystemctlenablemariadb
配置 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.-typed-execchmod0755{}\;
然后配置数据库链接要做到这一点,我们首先须要将示例配置文件复制到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 做事
systemctlrestarthttpd
访问
自动安装并设置密码
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.2k8s集群curl service的ip延迟相应高k8s集群数据备份与规复ingress-nginx持久化日志ingress-nginx金丝雀发布ingress-nginx高等金丝雀发布ingress自动化httpsprometheus查询k8s二进制1.14版本添加node节点kubeadm高可用集群安装参考链接
https://phpipam.net/news/phpipam-installation-on-centos-7/