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

    齊帥
  • 相关阅读:
    前台线程与后台线程,AfxGetApp>GetMainWnd()与AfxGetMainWnd的不同 (转)
    详细解说 STL 排序(Sort) (转)
    (转)怎样从一个DLL中导出一个C++类
    HTTP协议之状态码详解(转)
    关于列表(ListCtrl)控件的界面基础知识
    C++序列化(转)
    vs2008修改Menu(菜单)资源ID的方法。
    怎样解决VC中滚动条最大滚动值不能超过32767的问题
    < Photoshop CS 专栏 >颜色(二)
    C#使用BinaryReader类读取二进制文件
  • 原文地址:https://www.cnblogs.com/qishuai/p/7353797.html
Copyright © 2011-2022 走看看