apt-get install vimapt-get install ssh
apt-get install apache2
apt-get install redis-server
apt-get install subversion
apt-get install git-coreapt-get install php5apt-get install php5-gd
apt-get install php-pear
apt-get install php5-mysql
apt-get install libmysqlclient-dev
wget http://www.unixodbc.org/unixodbc-2.3.2.tar.gz
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-stable.tgz
wget pecl.php.net/get/pdo_mysql-1.0.2.tgz
wget pecl.php.net/get/pdo_odbc-1.0.1.tgz
git clone https://github.com/nicolasff/phpredis
phpize
./configure --prefix=/usr/local/unixodbc./configure --prefix=/usr/local/freetds --with-unixodbc=/usr/local/unixodbc/ --with-tdsver=7.0
./congigure --with-php-config=/usr/bin/php-config5 --with-pdo-odbc=unixodbc,/usr/local/unixodbc(如果错误,则试着修改congigure,更改相关的路径)
odbc.ini
[test1dsn]
driver = /usr/local/freetds/lib/libtdsodbc.so
description = first test dsn
trace = no
servername = myserver
database = 51fanli
uid = trace
freetds.conf
[myserver]
host = mdb.zz.51fanli.it
port = 1433
tds version = 7.0
测试
redis-cli
/usr/local/unixodbc/bin/isql -v test1dsn trace trace
/usr/local/freetds/bin/tsql -s myserver -u trace -p trace
http://www.bkjia.com/phpjc/738523.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/738523.htmltecharticleapt-get install vimapt-get install ssh apt-get install apache2 apt-get install redis-server apt-get install subversion apt-get install git-coreapt-get install php5apt-get install ph...
