http://2bits.com/articles/mysql-my-cnf-configuration-for-a-large-drupal-site.htm
http://2bits.com/articles/mysql-my-cnf-configuration-for-a-large-drupal-site.html
[mysqld]
user=mysql
pid-file=/usr/local/mysql/mysql.pid
socket=/tmp/mysql.sock
port=3306
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
tmpdir=/tmp
language=/usr/local/mysql/share/mysql/english
skip-locking
key_buffer=16M
max_allowed_packet=1M
table_cache=64
sort_buffer_size=512K
net_buffer_length=8K
read_buffer_size=256K
read_rnd_buffer_size=512K
myisam_sort_buffer_size = 8Mhttp://www.cppblog.com/netdigger/archive/2008/11/24/67733.html
http://hi.baidu.com/lygthwl/blog/item/2cc8bf362ace82d8a2cc2b4d.html
2、环境变量
Tomcat需要设置JAVA_HOME或者JRE_HOME的环境变量后才能正常运行。打开配置文件:
sudogedit~/.bashrc
在文件的末尾,添加如下两行
exportJAVA_HOME=/usr/lib/jvm/java-6-sun
exportPATH=$PATH:$JAVA_HOME/bin
mount-tsmbfs-ousername=Administrator//PC-20091222YAET/11/home/loiy/shareworkspace
在ubuntu命令行下访问Windows共享文件夹的命令是:
mount-tsmbfs-ousername=windowsusername//windowsmachine/sharefiles/mnt/localfolder
windowsusername:Windows用户名
windowsmachine:Windows机器名
sharefiles:Windows共享文件夹名
然后就可以在/mnt/localfolder下访问Windows内容。
取消访问命令:umount/mnt/localfolder