首页 > 后端开发 > php教程 > Ubuntu通过APT配置开发环境_PHP教程

Ubuntu通过APT配置开发环境_PHP教程

WBOY
发布: 2016-07-13 10:36:36
原创
768 人浏览过

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

www.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...
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板