mac下使用brew配置環(huán)境的步驟分享
更新時(shí)間: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`" 錯(cuò)誤
需要去掉
/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 啟動(dòng) 不能使用 root賬戶啟動(dòng)
下載 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`" 錯(cuò)誤
需要去掉
/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 啟動(dòng) 不能使用 root賬戶啟動(dòng)
下載 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)文章
PHP7基于curl實(shí)現(xiàn)的上傳圖片功能
這篇文章主要介紹了PHP7基于curl實(shí)現(xiàn)的上傳圖片功能,結(jié)合實(shí)例形式對(duì)比分析了php5.5之前與php7版本的curl圖片上傳功能相關(guān)實(shí)現(xiàn)與使用技巧,需要的朋友可以參考下2018-05-05php實(shí)現(xiàn)統(tǒng)計(jì)網(wǎng)站在線人數(shù)的方法
這篇文章主要介紹了php實(shí)現(xiàn)統(tǒng)計(jì)網(wǎng)站在線人數(shù)的方法,通過獲取服務(wù)器端網(wǎng)絡(luò)參數(shù)及文本文件讀寫實(shí)現(xiàn)統(tǒng)計(jì)在線人數(shù)的功能,非常簡(jiǎn)單實(shí)用,需要的朋友可以參考下2015-05-05PHP正則表達(dá)式 /i, /is, /s, /isU等介紹
PHP正則表達(dá)式 /i, /is, /s, /isU等,都代表著什么意思,你知道嗎?下面為大家詳細(xì)介紹下2014-10-10PHP+Ajax實(shí)現(xiàn)的檢測(cè)用戶名功能簡(jiǎn)單示例
這篇文章主要介紹了PHP+Ajax實(shí)現(xiàn)的檢測(cè)用戶名功能,結(jié)合簡(jiǎn)單實(shí)例形式分析了php結(jié)合ajax基于事件響應(yīng)動(dòng)態(tài)查詢數(shù)據(jù)庫及用戶名檢測(cè)相關(guān)操作技巧,需要的朋友可以參考下2019-02-02PHP實(shí)現(xiàn)找出有序數(shù)組中絕對(duì)值最小的數(shù)算法分析
這篇文章主要介紹了PHP實(shí)現(xiàn)找出有序數(shù)組中絕對(duì)值最小的數(shù)算法,簡(jiǎn)單分析了數(shù)組遍歷及二分查找算法的相關(guān)操作技巧,需要的朋友可以參考下2017-08-08php計(jì)算給定日期所在周的開始日期和結(jié)束日期示例
這篇文章主要介紹了php計(jì)算給定日期所在周的開始日期和結(jié)束日期,涉及php日期與時(shí)間相關(guān)運(yùn)算與轉(zhuǎn)換技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2017-02-02