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

    齊帥
  • 相关阅读:
    hadoop 2.0 详细配置教程
    大数据架构:flume-ng+Kafka+Storm+HDFS 实时系统组合
    KAFKA分布式消息系统
    element table组件懒加载
    vue将页面导出成pdf
    element upload上传前对文件专门bs64上传
    element table 通过selection-change选中的索引删除
    JavaScript实现Word、Excel、PPT在线预览
    数组对象位置对换
    textarea 根据光标位置添加内容
  • 原文地址:https://www.cnblogs.com/qishuai/p/7353797.html
Copyright © 2011-2022 走看看