mac下使用brew配置環(huán)境的步驟分享
更新時間:2011年05月23日 21:21:05 作者:
mac下使用brew配置環(huán)境的步驟分享,需要的朋友可以參考下。
首先 開啟web共享。
配置
httpd.conf 加入php拓展 /etc/apache2/httpd.conf
如出現(xiàn) ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" 錯誤
需要去掉
/usr/sbin/apachectl 里面的 ulimit -S -n `ulimit -H -n
重啟apache
brew install memcached 安裝 memcache
安裝后 memcache 路徑 /usr/local/bin/memcached
Add "-d" to start it as a daemon.
/usr/local/bin/memcached -d 啟動 不能使用 root賬戶啟動
下載 memcache
http://pecl.php.net/package/memcache
執(zhí)行 ./configure make sudo make install
編輯 php ini chmod -R 755 /etc/php.ini
修改拓展路徑 /usr/lib/php/extensions/no-debug-non-zts-20090626/
新加 extension=memcache.so
查看 phpinfo 是否 拓展 memcache
配置
httpd.conf 加入php拓展 /etc/apache2/httpd.conf
如出現(xiàn) ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" 錯誤
需要去掉
/usr/sbin/apachectl 里面的 ulimit -S -n `ulimit -H -n
重啟apache
brew install memcached 安裝 memcache
安裝后 memcache 路徑 /usr/local/bin/memcached
Add "-d" to start it as a daemon.
/usr/local/bin/memcached -d 啟動 不能使用 root賬戶啟動
下載 memcache
http://pecl.php.net/package/memcache
執(zhí)行 ./configure make sudo make install
編輯 php ini chmod -R 755 /etc/php.ini
修改拓展路徑 /usr/lib/php/extensions/no-debug-non-zts-20090626/
新加 extension=memcache.so
查看 phpinfo 是否 拓展 memcache
相關(guān)文章
php實現(xiàn)統(tǒng)計網(wǎng)站在線人數(shù)的方法
這篇文章主要介紹了php實現(xiàn)統(tǒng)計網(wǎng)站在線人數(shù)的方法,通過獲取服務(wù)器端網(wǎng)絡(luò)參數(shù)及文本文件讀寫實現(xiàn)統(tǒng)計在線人數(shù)的功能,非常簡單實用,需要的朋友可以參考下2015-05-05PHP實現(xiàn)找出有序數(shù)組中絕對值最小的數(shù)算法分析
這篇文章主要介紹了PHP實現(xiàn)找出有序數(shù)組中絕對值最小的數(shù)算法,簡單分析了數(shù)組遍歷及二分查找算法的相關(guān)操作技巧,需要的朋友可以參考下2017-08-08