Last active
June 20, 2018 10:35
-
-
Save yasuken1990/d5a2ab2176123db4c9cd107080d3fdc7 to your computer and use it in GitHub Desktop.
PHP, Memcached インストール (Install Memcached PHP HomeBrew) ref: https://qiita.com/yasuken/items/7caae97114ae7d5487d6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install pkg-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pecl install memcached | |
(中略) | |
Example: | |
Installing '/usr/local/Cellar/php@7.1/7.1.18/pecl/20160303/memcached.so' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -i | grep php.ini | |
Example: | |
Configuration File (php.ini) Path => /usr/local/etc/php/7.1 | |
Loaded Configuration File => /usr/local/etc/php/7.1/php.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim vim /usr/local/etc/php/7.1/php.ini | |
Add write: | |
extension='/usr/local/Cellar/php@7.1/7.1.18/pecl/2016033/memcached.so' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -m | grep memcached | |
memcached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment