MySQL配置文件说明[zz]
作者:tyc00n
原文url: http://bbs.chinaunix.net/viewthread.php?tid=579846
MySQL配置文件
MySQL发布的最新产品实际上超出了Red Hat Enterprise Linux所携带的版本。但是,稳定性和开放源代码可是很重要的因素,因此在操作系统上使用较早MySQL版本是有道理的。
Continue Reading ...
作者:tyc00n
原文url: http://bbs.chinaunix.net/viewthread.php?tid=579846
MySQL配置文件
MySQL发布的最新产品实际上超出了Red Hat Enterprise Linux所携带的版本。但是,稳定性和开放源代码可是很重要的因素,因此在操作系统上使用较早MySQL版本是有道理的。
Continue Reading ...
参考了车东网站 http://www.chedong.com/tech/cvs_card.html
++软件安装部分
$rpm -qa cvs #没有可找光盘rpm包安装,或http://cvs.nongnu.org/下载编译
Continue Reading ...
我用到的集群系统主要就2种:
高可用(High Availability)HA集群, 使用Heartbeat实现;也会称为”双机热备”, “双机互备”, “双机”。
负载均衡群集(Load Balance Cluster),使用Linux Virtual Server(LVS)实现;
这里只讨论HA,使用Heartbeat实现.集群
Continue Reading ...
#!/bin/sh
cp /etc/host.conf /etc/host.back
echo "# Lookup names via DNS first then fall back to /etc/hosts." > /etc/host.conf
echo "order bind,hosts" >> /etc/host.conf
echo "# We have machines with multiple IP addresses." >> /etc/host.conf
echo "multi on" >> /etc/host.conf
echo "# Check for IP address spoofing." >> /etc/host.conf
echo "nospoof on" >> Continue Reading ...
++基本
modprobe ip_nat_ftp
#echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all #服务器禁ping
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth1 -p tcp –dport 22 -j ACCEPT #eth1为内网卡
iptables -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -P INPUT DROP
iptables -vnL [-t nat] #查看
++内网PC实现NAT上网
iptables -t nat -A POSTROUTING Continue Reading ...
SQL常用命令使用方法:
(1) 数据记录筛选:
sql="select * from 数据表 where 字段名=字段值 order by 字段名 [desc]"
sql="select * from 数据表 where 字段名 like '%字段值%' order by 字段名 [desc]"
sql="select top 10 * from 数据表 where 字段名 order by 字段名 [desc]"
sql="select * from 数据表 where 字段名 in ('值1','值2','值3')"
Continue Reading ...
squid代理网关笔记
++最简单办法开启代理服务:
editting /usr/local/squid/etc/squid.conf,locate “http_access deny all”and change to “http_access allow all”
++WEB方式简单管理
/usr/lib/squid/cachemgr.cgi下有个脚本cachemgr.cgi(Default path on redhat series),把它拷贝到你的Web的cgi-bin目录下(Apache安装后默认的web根是/var/www),通过浏览器运行,可以进入web方式的一些管理。
++ACL Continue Reading ...