-
-
Notifications
You must be signed in to change notification settings - Fork 60
Install NicTool on CentOS
Matt Simerson edited this page May 12, 2015
·
20 revisions
See also CentOS-6 and CentOS-7
yum update
On CentOS, especially a minimal install, it's helpful to pre-install a few dependencies.
yum -y install mysql mysql-server mysql-devel
chkconfig mysqld on
service mysqld start
yum -y install httpd httpd-devel mod_perl mod_perl-devel mod_ssl
chkconfig httpd on
service httpd start
yum -y install curl gcc make gettext gettext-devel rsync libxml2 libxml2-devel
yum -y install perl-Net-IP perl-XML-Parser perl-XML-LibXML perl-Digest-HMAC
mkdir /usr/local/nictool && cd /usr/local/nictool
tar -xzf ~/NicTool.tar.gz
tar -xzf server/NicToolServer-2.??.tar.gz
tar -xzf client/NicToolClient-2.??.tar.gz
mv server foo; mv NicToolServer-2.?? server
mv client bar; mv NicToolClient-2.?? client
rm -rf foo bar
cd client; perl Makefile.PL; make; sudo make install clean
cd ../server; perl Makefile.PL; make; sudo make install clean
yum -y install perl-CPAN perl-Module-Build
cd /usr/local/nictool/server; perl bin/nt_install_deps.pl
cd /usr/local/nictool/client; perl bin/install_deps.pl
cd /usr/local/nictool/server/sql
perl create_tables.pl
Make sure the database settings are the same as what you defined in create_tables.pl
cd /usr/local/nictool/
cp client/lib/nictoolclient.conf.dist client/lib/nictoolclient.conf
cp server/lib/nictoolserver.conf.dist server/lib/nictoolserver.conf
vim server/lib/nictoolserver.conf
Install a self-signed SSL certificate
mkdir /etc/ssl/certs /etc/ssl/private
chmod o-r /etc/ssl/private
openssl req -x509 -nodes -days 2190 -newkey rsa:2048 -keyout /etc/ssl/private/server.key -out /etc/ssl/certs/server.crt
Install nictool Apache vhost declarations
wget http://www.nictool.com/download/nictool.conf
vim nictool.conf
mv nictool.conf /etc/httpd/conf.d/z_nictool.conf
restart apache
service httpd restart
- NicTool Server
- NicTool Client
- on FreeBSD 10.1
- on CentOS 6, 7
- on Ubuntu 14, 16, 18
- Docker