sh Mac OS X High Sierra / PHP Apache httpd配置节点NPM

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Mac OS X High Sierra / PHP Apache httpd配置节点NPM相关的知识,希望对你有一定的参考价值。

# https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions
# https://robots.thoughtbot.com/starting-and-stopping-background-services-with-homebrew
# https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc
# https://gist.github.com/rcugut/c7abd2a425bb65da3c61d8341cd4b02d



## brew install php
$ brew install php56 --with-httpd
$ brew unlink php56
$ brew reinstall php70 --with-httpd


## php switching
## 70 71 ...
$ sphp 70


## brew update
$ brew update
$ brew upgrade


## xdebug / ini
## 70 71 ...
$ brew install php70-xdebug --build-from-source
$ code /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini

# [xdebug]
# zend_extension="/usr/local/opt/php70-xdebug/xdebug.so"
# xdebug.remote_enable=1
# xdebug.remote_host=localhost


## brew services httpd
## once
$ sudo brew services start httpd
## list / stop
$ brew services list
$ brew services stop <SRV>


## apache control
$ sudo apachectl start
$ sudo apachectl stop
$ sudo apachectl -k restart

## apache conf
$ code /usr/local/etc/httpd/httpd.conf


## updating n (node updater)
#$ npm install -g n
## updating node.js
#$ n latest
$ brew update node
## updating yarn
$ brew update yarn
## updating npm
#$ curl https://www.npmjs.org/install.sh | sh
$ npm update -g npm

以上是关于sh Mac OS X High Sierra / PHP Apache httpd配置节点NPM的主要内容,如果未能解决你的问题,请参考以下文章

无法在 Mac OS X 10.13 High Sierra 中为自制软件 chown /usr/local

如何制作macos high sierra安装u盘

Vhost 与 Mamp Mac OS High Sierra

无法在 Mac OS High Sierra 上设置 phpmyadmin

bash:pip:命令找不到mac os high sierra

tmux 前缀键在 mac OS High Sierra 上不起作用