MySQL基本

查看內存頁
getconf PAGE_SIZE

ipcs

MySQL常用選項
mysqldump -q --lock-tables --single-transaction
mysqldump -w
mysqldump
時區:--tz-utc

日期時間類型推薦:
TIMESTAMP

sysbench:
Installing:
See the file INSTALL for generic installation instructions.
In most cases you will need the following steps:
    ./autogen.sh (unnecessary if you are building from a release tarball)
    ./configure (or ./configure --without-mysql to compile w/o MySQL support)
    make
    make install
    
./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib && make && make install

hdparm

tpcc_load
tpcc_start



掛在XFS
mount -o remount -o noatime,nodiratime,inode64,nobarrier /dev/sdb1 /backup

監控溫度:
yum provides "ipmitool"


關閉query cache
同時設置選項 query_cache_type = 0 和 query_cache_size = 0;




安裝SVN 時候:apr apr-util 老是無法找到推薦源碼安裝

首先安裝apr 指定安裝到/usr/local/apr

wget http://mirrors.cnnic.cn/apache/apr/apr-1.4.8.tar.gz
tar zxvf apr-1.4.8.tar.gz
cd apr-1.4.8
./configure --prefix=/usr/local/apr
make & make install

然後安裝apr-util,指定安裝到/usr/local/apr-util

    
wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.2.tar.gz
tar zxvf apr-util-1.5.2.tar.gz
cd apr-util-1.5.2
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make & make install

經過上面的步驟我們就可以安裝其他程序了,比如編譯安裝svn的時候指定apr和apr-util
指定svn位置/usr/local/subversion 同時也要指定apr和apr-util位置,代碼如下

    
wget http://mirror.esocc.com/apache/subversion/subversion-1.8.3.tar.gz
cd subversion-1.8.3.tar.gz
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make & make install


./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
 
 svnserve -d -r /data2/svn
 
 /usr/local/subversion/bin/svnserve -d -r /data2/svn
 
 
 鉤子中文報錯解決post-commit:
 export LANG=en_US.UTF-8

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章