编译IPFW内核
cpu HAMMER
ident LVTAO
# To statically compile in device wiring instead of /boot/device.hints
#hints “GENERIC.hints” # Default places to look for devices.
#makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
比较挺OK的my.cnf设置
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 4M
join_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 32
query_cache_size = 64M
thread_concurrency = 8
max_connections = 512
tmp_table_size = 256M
max_heap_table_size = 128M
skip-name-resolve
skip-networking
FreeBSD测试服务器pure-ftpd Ports安装备忘录
┌───────────────────────────────────────────
│ Options for pure-ftpd 1.0.21_1
│ ┌─────────────────────────────────────────
│ │[ ] LDAP Support for users in LDAP directories
│ │[X] MYSQL Support for users in MySQL database
│ │[X] PAM Support for PAM authentication
FreeBSD测试服务器Mysql Ports安装备忘录
/usr/ports/databases/mysql50-server
make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_general_ci
Freebsd中监视系统性能状态的工具:systat
systat基本上是FreeBSD中最功能最多的系统监视命令,显示CPU、I/O、内存、虚拟内存、mbufs、磁盘IO、网络状态等信息等。
命令:
systat [-display] [refresh-interval]
其中 display 为我们所要显示的信息项目,我们也可以在进入 systat 后通过输入“:display”变更显示项目,refresh-interval 参数是需要多长时间采样一次系统数据输出到屏幕,单位是秒。
实例:# systat -vmstat 1
命令解释:显示CPU、I/O、内存、虚拟内存、mbufs、磁盘IO、网络状态等信息。信息采样刷新时间为1秒。