Monthly Archives: 5月 2013

配置服务器内网IP

三台服务器各4个网卡,各用了两个,一个电信IP,一个联通IP。现需要在每台机器上面配置一个内网IP(192.168.x.x),三台服务器通过这个内网ip来连接,提高网络的稳定性。

配置方法:

#服务器1
ifconfig em1:0 192.168.10.1 netmask 255.255.255.0[......]

Read more

[init]nginx

包含了php-fpm进程的启动与关闭

#!/bin/sh
#
# nginx        Startup script for nginx
#
# chkconfig: - 85 15
# processname: nginx
# config: /opt/program/nginx/conf/n[......]

Read more

[init]saslauthd

#! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which ha[......]

Read more

[init]postfix

#!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the prog[......]

Read more

[init]dovecot

### BEGIN INIT INFO
# Provides:          dovecot
# Required-Start:    $local_fs $remote_fs $network $syslog $time
# Required-Stop:     $local_fs $remo[......]

Read more

[init]dkim-milter

#!/bin/bash
#
# /etc/init.d/dkim-milter
#
# chkconfig:   - 79 21
# description: DomainKeys Identified Mail Milter
# processname: dkim-filter
# config:[......]

Read more

[init]Vsftpd

#!/bin/bash
#
### BEGIN INIT INFO
# Provides: vsftpd
# Required-Start: $local_fs $network $named $remote_fs $syslog
# Required-Stop: $local_fs $networ[......]

Read more

[init]Vpsmate

#!/bin/sh
#
# vpsmate - this script starts and stops the vpsmate daemon
#
# chkconfig:   - 85 15
# description: VPSMate is a web-based linux VPS manag[......]

Read more

[init]Svnserve

#!/bin/bash
#
# svnserve        Startup script for the Subversion svnserve daemon
#
# chkconfig: - 85 15
# description: The svnserve daemon allows acc[......]

Read more

[init]Mysqld

#!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQ[......]

Read more

[init]Httpd

#!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient an[......]

Read more

[init]Fail2ban

#!/bin/bash
#
# chkconfig: 345 92 08
# description: Fail2ban daemon
#              http://fail2ban.sourceforge.net/wiki/index.php/Main_Page
# process[......]

Read more

dovecot配置

安装

yum install pam-devel  mysql-devel
./configure --prefix=/opt/dovecot --with-pam --with-shadow --with-mysql --with-sqlite
make && make instal[......]

Read more

postfix配置

mai.cf

#新增的内容开始

myhostname = mail.domain.cn
myorigin = domain.cn
inet_interfaces = all
inet_protocols = ipv4
mydestination = domain.cn, localhost
myne[......]

Read more