zoukankan      html  css  js  c++  java
  • Mac 软件安装

    1. 安装brew

    curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

    brew update

    sudo chown -R $(whoami) /usr/local

    brew update

    rm -r -f /usr/local/share/doc/homebrew

    brew update

    2. 安装nginx   


    brew search nginx

    brew install nginx

     

    Docroot is: /usr/local/var/www

    The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that

    nginx can run without sudo.

     

    nginx will load all files in /usr/local/etc/nginx/servers/.

    /usr/local/Cellar/nginx/1.12.1: 23 files, 1MB

      基本命令:

            nginx -ve

             sudo nginx

             sudo nginx -s reload

             sudo nginx -s stop

     参考:http://www.cnblogs.com/cheemon/p/5638394.html

     3. 安装php

        

    安装php7.0.15
    brew install homebrew/php/php70
    brew install homebrew/php/php70-mcrypt
    brew install homebrew/php/php70-redis
    brew install homebrew/php/php70-msgpack
    brew install homebrew/php/php70-memcached
     
    安装php后可执行文件所在路径(-v ):
    /usr/local/bin/php -v
    /usr/local/bin/phpize -v
    /usr/local/bin/php-config -v
    /usr/local/sbin/php-fpm -v
     
     
     重启再次查看环境
     
     启动fpm:  
          sudo /usr/local/Cellar/php70/7.0.22_14/sbin/php70-fpm start 
          sudo nginx
          /usr/local/sbin/php-fpm(老版本)
     sudo pkill php-fpm
    参考:  
     

     php 安装

    php composer.phar require johnlui/aliyun-oss

    齊帥
  • 相关阅读:
    codevs 2632 非常好友
    codevs 1213 解的个数
    codevs 2751 军训分批
    codevs 1519 过路费
    codevs 1503 愚蠢的宠物
    codevs 2639 约会计划
    codevs 3369 膜拜
    codevs 3135 River Hopscotch
    数论模板
    JXOJ 9.7 NOIP 放松模拟赛 总结
  • 原文地址:https://www.cnblogs.com/qishuai/p/7353797.html
Copyright © 2011-2022 走看看