配置服务器内网IP
三台服务器各4个网卡,各用了两个,一个电信IP,一个联通IP。现需要在每台机器上面配置一个内网IP(192.168.x.x),三台服务器通过这个内网ip来连接,提高网络的稳定性。
配置方法:
#服务器1 ifconfig em1:0 192.168.10.1 netmask 255.255.255.0[......]
三台服务器各4个网卡,各用了两个,一个电信IP,一个联通IP。现需要在每台机器上面配置一个内网IP(192.168.x.x),三台服务器通过这个内网ip来连接,提高网络的稳定性。
配置方法:
#服务器1 ifconfig em1:0 192.168.10.1 netmask 255.255.255.0[......]
crontab的定时任务执行后都会给root发送一封邮件,通过以下方法可以防止这种情况
SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin #这是第一种方法,设置MAILTO参数为空 MAILTO="" HOME=/ # For details se[......]
包含了php-fpm进程的启动与关闭
#!/bin/sh # # nginx Startup script for nginx # # chkconfig: - 85 15 # processname: nginx # config: /opt/program/nginx/conf/n[......]
#! /bin/bash # # saslauthd Start/Stop the SASL authentication daemon # # chkconfig: - 65 10 # description: Saslauthd is a server process which ha[......]
#!/bin/bash # # postfix Postfix Mail Transfer Agent # # chkconfig: 2345 80 30 # description: Postfix is a Mail Transport Agent, which is the prog[......]
### BEGIN INIT INFO # Provides: dovecot # Required-Start: $local_fs $remote_fs $network $syslog $time # Required-Stop: $local_fs $remo[......]
#!/bin/bash # # /etc/init.d/dkim-milter # # chkconfig: - 79 21 # description: DomainKeys Identified Mail Milter # processname: dkim-filter # config:[......]
#!/bin/bash # ### BEGIN INIT INFO # Provides: vsftpd # Required-Start: $local_fs $network $named $remote_fs $syslog # Required-Stop: $local_fs $networ[......]
#!/bin/sh # # vpsmate - this script starts and stops the vpsmate daemon # # chkconfig: - 85 15 # description: VPSMate is a web-based linux VPS manag[......]
#!/bin/bash # # svnserve Startup script for the Subversion svnserve daemon # # chkconfig: - 85 15 # description: The svnserve daemon allows acc[......]
#!/bin/sh # # mysqld This shell script takes care of starting and stopping # the MySQL subsystem (mysqld). # # chkconfig: - 64 36 # description: MySQ[......]
#!/bin/bash # # httpd Startup script for the Apache HTTP Server # # chkconfig: - 85 15 # description: The Apache HTTP Server is an efficient an[......]
#!/bin/bash # # chkconfig: 345 92 08 # description: Fail2ban daemon # http://fail2ban.sourceforge.net/wiki/index.php/Main_Page # process[......]
yum install pam-devel mysql-devel ./configure --prefix=/opt/dovecot --with-pam --with-shadow --with-mysql --with-sqlite make && make instal[......]
#新增的内容开始 myhostname = mail.domain.cn myorigin = domain.cn inet_interfaces = all inet_protocols = ipv4 mydestination = domain.cn, localhost myne[......]