# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
Example Ethernet: capture all traffic to and from the Ethernet address 08:00:08:15:ca:fe
以太网地址例子:抓取网络地址 08:00:08:15:ca:fe 上所有流入流出的数据包
ether host 08:00:08:15:ca:fe
Example IP: capture all traffic to and from the IP address 192.168.0.10
IP地址例子:抓取IP地址 192.168.0.10 上所有流入流出的数据包
host 192.168.0.10
Example TCP: capture all traffic to and from the TCP port 80 (http) of all machines
语法:unzip [选项] 压缩文件名.zip
各选项的含义分别为:
-x 文件列表 解压缩文件,但不包括指定的file文件。
-v 查看压缩文件目录,但不解压。
-t 测试文件有无损坏,但不解压。
-d 目录 把压缩文件解到指定目录下。
-z 只显示压缩文件的注解。
-n 不覆盖已经存在的文件。
-o 覆盖已存在的文件且不要求用户确认。
-j 不重建文档的目录结构,把所有文件解压到同一目录下。
InnoDB和MyISAM是在使用MySQL最常用的两个表类型,各有优缺点,视具体应用而定。下面是已知的两者之间的差别,仅供参考。
innodb
InnoDB 给 MySQL 提供了具有事务(commit)、回滚(rollback)和崩溃修复能力(crash recovery
capabilities)的事务安全(transaction-safe (ACID compliant))型表。InnoDB
提供了行锁(locking on row level),提供与 Oracle 类型一致的不加锁读取(non-locking read in
MySQL优化步骤及my.cnf缓存优化
1、看机器配置,指三大件:cpu、内存、硬盘
2、看mysql配置参数
3、查系mysql行状态,可以用mysqlreport工具来查看
4、查看mysql的慢查询
依次解决了以上问题之后,再来查找程序方面的问题
my.cnf缓存优化
在 my.cnf 中添加/修改以下选项:
#取消文件系统的外部锁
skip-locking
#不进行域名反解析,注意由此带来的权限/授权问题
skip-name-resolve
最新评论
1 年 2 周 前
1 年 8 周 前
1 年 19 周 前
1 年 19 周 前
1 年 20 周 前
1 年 20 周 前
1 年 43 周 前
1 年 49 周 前
1 年 49 周 前
1 年 49 周 前