1、 关闭系统的防火墙和selinux,以防出现异常的问题
- [root@jdserver named]# chkconfig --list |grep tables
- ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
- iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
- # This file controls the state of SELinux on the system.
- # SELINUX= can take one of these three values:
- # enforcing - SELinux security policy is enforced.
- # permissive - SELinux prints warnings instead of enforcing.
- # disabled - SELinux is fully disabled.
- SELINUX=disabled
- # SELINUXTYPE= type of policy in use. Possible values are:
- # targeted - Only targeted network daemons are protected.
- # strict - Full SELinux protection.
- SELINUXTYPE=targeted
- [root@jdserver selinux]# chkconfig --list |grep sendmail
- sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
- [root@jdserver selinux]# service sendmail stop
- cd /opt/ //安装在/opt目录下
- tar zxvf jdmail_linux_x86_393.tar.gz //解压jdmail
- #!/bin/sh
- JDMAIL_ROOT=/opt/jdmail
- #!/bin/bash
- cd /opt/jdmail
- #!/bin/bash
- /opt/jdmail/startjd.sh
- /opt/jdmail/web/bin/startup.sh
- #sleep 3
- #/opt/jdmail/safestart.sh &
- #!/bin/sh
- JDMAIL_ROOT=/opt/jdmail
- #!/bin/sh
- # -----------------------------------------------------------------------------
- # Start Script for the CATALINA Server
- #
- # $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
- # -----------------------------------------------------------------------------
- # resolve links - $0 may be a softlink
- PRG="$0"
- JAVA_HOME="/opt/jdmail/jdk"
- export JAVA_HOME
- #!/bin/sh
- SA_ROOT=/opt/jdmail/sa
- export SA_ROOT
- PERL_ROOT=/opt/jdmail/perl
- export PERL_ROOT
- #!/bin/sh
- #
- # This script will be executed *after* all the other init scripts.
- # You can put your own initialization stuff in here if you don't
- # want to do the full Sys V style init stuff.
- touch /var/lock/subsys/local
- /opt/jdmail/startjd.sh &
- /opt/jdmail/web/bin/startup.sh &
- <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
- <Connector port="80"
- maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
- enableLookups="false" redirectPort="8443" acceptCount="100"
- debug="0" connectionTimeout="20000"
- disableUploadTimeout="true" />
- [root@jdserver2 conf]# lsof -i :25
- COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
- jdmail 18567 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18571 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18572 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18573 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18574 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18575 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18576 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- jdmail 18577 root 23u IPv4 155106 TCP *:smtp (LISTEN)
- [root@jdserver2 conf]# ps aux |grep web
- root 18583 1.1 9.7 267292 49380 pts/1 Sl 16:01 0:06 /opt/jdmail/jdk/bin/java -Djava.awt.headless=true -Djava.endorsed.dirs=/opt/jdmail/web/common/endorsed -classpath /opt/jdmail/jdk/lib/tools.jar:/opt/jdmail/web/bin/bootstrap.jar:/opt/jdmail/web/bin/commons-logging-api.jar -Dcatalina.base=/opt/jdmail/web -Dcatalina.home=/opt/jdmail/web -Djava.io.tmpdir=/opt/jdmail/web/temp org.apache.catalina.startup.Bootstrap start
- root 18905 0.0 0.1 3924 676 pts/1 R+ 16:11 0:00 grep web
- [root@jdserver2 conf]# ps aux |grep jdmail
- root 18567 0.1 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18571 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18572 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18573 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18574 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18575 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18576 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- root 18577 0.0 2.2 428728 11316 pts/1 S 16:01 0:00 ./jdmail
- [root@jdserver2 dnscache]# pwd
- /opt/jdmail/dnscache
- [root@jdserver2 dnscache]# ls
- a mx
- [root@jdserver2 dnscache]#