龙哥坤哥刘运峰—CSDN
#/bin/bash #MySQL Cluster集群配置方案 #用途 主机名 IP #管理节点 ndb_mgmd 192.168.40.129 #数据节点1 &nb
[安装环境] 操作系统:CentOs 5.6 MAT:POSTFIX2.8.4 安装之前必须保证POSTFIX能正常收发信 如果已经安装过Berkeley Db3以上版本可以不安装新的DB(但是注意引入db.so) [
Nginx+keepalived主主负载均衡服务器 测试实验环境: 主Nginx之一:192.168.11.27 主Nginx之二:192.168.11.28 Web服务器一:192.168.11.37 Web服务器二:192.168.11.38 VIP地址一:192.168.11.208 VIP地址二:192.168.11.209 环境: 以下环境均使用的是centos
keepalive+nginx搭建主从负载服务器 keepalive配置文件 从: ! Configuration File for keepalived global_defs { notification_email { &n
Nginx的反向代理功能配置一个nginx负载均衡服务器,后端有三个服务节点,提供web服务。 搭建环境: 系统redhat系统5.4 (1)搭建前准备: 四台linux主机 DNS:192.168.1.150 web:192.168.1.121 web:192.168.1.125 web:192.168.1.126 nginx:192.168.1.120 用
Linux 下 OpenVPN 安装和 Windows OpenVPN GUI 安装笔记 一. OpenVPN 安装环境 Server 端的环境 #[root@localhost ~]# lsb_release -a LSB Version: &
安装环境 [root@localhost ~]# lsb_release -a LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch Distributor
一、安装及配置推荐下载 wget http://fossies.org/unix/misc/pure-ftpd-1.0.34.tar.gz下载phpweb管理组件 wget http://www.yiyou.org/docs/PureAdmin_03_php/PureAdmin-0.3.tar.gz mysql.
查看Apache的并发请求数及其TCP连接状态:netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'实时查看apache连接数watch -n 1 -d 'pgrep httpd | wc -l'
echo 65532 > /proc/sys/fs/file-max echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout echo 60000 > /proc/sys/net/ipv4/tcp_keepalive_time echo 15000 > /proc/sys/net/ipv4/tcp_keepalive_intvl echo
#! /bin/bash for i in `cat allip` do ping=`ping -c 1 $i|grep loss|awk '{print $6}'|awk -F "%" '{print $1}'` if [ $ping -eq 100 ];then echo ping $i fail else echo ping $i ok fi done 程序很
openfire 端口重定向实例<virtualhost *:80> servername example.com .... ProxyVia On RewriteEngine On RewriteCond %{REQUEST_URI} ^/plugins/presence/status RewriteRule ^/(.*) http://examp
BOOT:su - oracle[oracle@websvr1 oracle]$ sqlplus /nologSQL> connect / as sysdbaSQL> startupSQL> quit[oracle@websvr1 oracle]$ lsnrctl start[oracle@websvr1 oracle]$ lsnrctl statusOFF:su - oracl
1、ls (hd0,x)/boot/grub2、set root=(hd0,x)3、set prefix=(hd0,x)/boot/grub4、insmod normal 5、normail6、进入系统update-grub7、sudo grub-install /dev/sda
linux下将‘,’替换成回车键,实现单行显示eg:a,b,c,d转成abcd可以使用sed命令cat file | sed 's/,/\n/g' > newfile 这样就可以了反过来 cat file | sed ':a;N;$!ba;s#\n#,#g' > newfile或 awk '{print
#!/bin/bash # BY kerryhu # MAIL:king_819@163.com # BLOG:http://kerry.blog.51cto.com #welcome cat << EOF +--------------------------------------------------------------+ |  
vi /etc/service_stop.sh#!/bin/bash# This script is used to del some service is not used on the serverservice microcode_ctl stopchkconfig --level 235 microcode_ctl offservice gpm stopchkconfig --
export HISTTIMEFORMAT="%F %T " #可将它添加到/etc/profile 系统配置文件中去
解决Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)问题 在安装好mysql后但是发现缺少某些模块,从新安装当设置密码是提示Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 你搜索/tmp/mysql.s
最近在公司经常有人说部分网站上不去 这令我们有点郁闷,外网都可以上,咋内网的部分网站就不能上呢, 纠思原因,找到了问题的所在, 网关不正确, 更改一下网关就可以了
#!/bin/bash#######################################install apache start if [ ! -d /usr/local/apache2 ]then cd /roottar -zxvf httpd-2.2.9.tar.gzcd httpd-2.2.9./configure --prefix=/usr/local/apache2 --en
公司现在有需要搭建bugzilla 系统,之前搭建过,但是没有记录下来,这次把他完全记录下来,以供自己以后参考(建议在安装系统的时候安装上开发工具,administrator tool ,system tool 等,这样在安装的过程中就不会出现缺少包的情况) 1.安装apache tar zxvf httpd-2.2.9.tar.gz cd httpd-2.2.9 ./configure
#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin RC_SQUID=/etc/rc.d/init.d/squid # 對外連線 EXTIF="eth1" # 對內連線 INTIF="eth0" INNET="192.168.100.1/24" # 針對 NAT & DHCP NATNET="eth2" NTNET="192.1
orale 备份脚本#!/bin/bash#/hoMe/oracle/.bash_profilebackup_data=`date +%Y%m%d`back_home=/homebackup_dest=/home/oracle/back_databackup_log=/home/oracle/back_logRECIPT='xuezm@***.com'#check disk free
更改ubuntu的系统语言配置文件路径/etc/default/localesudo gedit /etc/default/localeLANG="en_US.UTF-8"LANGUAGE="en_US:en"
svn客户端 authorization failed 近来在ubuntu上安装svn时发生了个错误,在客户端check时总是提示authorization failed 后来终于找到了解决的方法: 我把我的想关联的文件列出来: svnserve.conf: [general] anon-access = none auth-access = write,
创建新的分区: [root@localhost /]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only
在进入系统的时候经常提示You have new mail in /var/spool/mail/root 该怎样解决呢: 这是正常的,但是不要小视哦 修改/usr/share/logwatch/default.conf/logwatch.conf配置文件 下面为显示的配置文件 [root@localhost mail]# cat /usr/share/logwatch/de
#!/bin/sh # Load FTP Kernel modules /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp # Inital chains default policy /sbin/iptables -F -t filter /sbin/iptables -P INPUT DROP /sb
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号