Difference between revisions of "Centos7"

From DXSpider Documentation Wiki
Jump to: navigation, search
Line 4: Line 4:
centos7 systemd system file
centos7 systemd system file
we need to install EPEL for additional packages
[https://fedoraproject.org/wiki/EPEL EPEL]
Additional yum command  
Additional yum command  

Revision as of 21:12, 23 March 2015


Centos7 makes some big changes to both the init system and to the firewall

centos7 systemd system file

we need to install EPEL for additional packages EPEL

Additional yum command

 yum install perl-TimeDate perl-Time-HiRes perl-Digest-SHA1 perl-Curses perl-Net-Telnet git gcc make perl-Data-Dumper perl-DB_File


a basic service file for systemd

create a file


With the following contents

Description= Dxspider DXCluster service

ExecStart= /usr/bin/perl -w /spider/perl/cluster.pl
# Comment out line below for logging everything to /var/log/messages



to start up dxspider 
#service dxspider start
to stop
#service dxspider stop

to set up to start on boot 
#systemctl enable dxspider


The firewall, centos7 has moved to using firewalld to manage the firewall settings, I am not sure how I feel about this! The old way can be installed

#yum remove firewalld
#yum install iptables-service 

systemctl enable iptables

Then you have the traditional iptables way of doing things

However if one wishes to use the 'new way' with firewalld

first create


with the contents (change port number to suit your own needs)

  <description>Dxspider dxcluster service on tcp port 7300</description>
  <port protocol="tcp" port="7300"/>

then issue the following commands as root

#firewall-cmd --reload 
#firewall-cmd --permanent --zone=public --add-service=dxspider
#firewall-cmd --reload