zoukankan      html  css  js  c++  java
  • mac开启服务命令

    开启mysql    mysql.server start

    开启nginx         sudo  nginx

    重启nginx     sudo  nginx   -s   reload

    开启apache       apachectl start     sudo apachectl -k start 

    重启apache   apachectl restart

    开启php          sudo  php-fpm(初始先将php-fpm.conf.default  备份成php-fpm.conf)

    重启php            比较麻烦,直接使用sudo  php-fpm 会报错,如下:

            我采用的是先查看php-fpm的进程,然后一一杀死,在执行sudo  php-fpm  命令即    

               ps aux | grep  php-fpm   查看进程

                  kill   13258  一个一个杀死 

                sudo   php-fpm   即可

    开始ssh     pkill    ssh(杀掉)

            /usr/sbin/sshd    (开启)

            vim  /etc/sshd-config     修改该开启写配置

    apache

            vi  private/etc/apache2/extra/httpd-vhosts.conf     增加域名信息

            vi  /etc/hosts     增加ip域名记录

    线上apache干扰

            ps    aux | grep   httpd    查看apache

            /etc/init.d/apache2  stop

            /etc/init.d/nginx     restart

    开启redis     redis-server    &

    开启memchached 

          -vv 参数调式模式  

          /usr/local/memcached-1.4.17/bin/memcached -p 11211 -m 64 -u root -vv  

          -d 守护进程模式   ./memcached -p 11211 -m 64 -u root -d  

           /usr/local/memcached-1.4.17/bin/memcached -d -m 200 -u root -l 127.0.0.1 -p 11211 -c 1000 -P /tmp/memcached.pid 

          /usr/local/bin/memcached -d -m 200 -u root -l 127.0.0.1 -p 11211 -c 1000 -P /tmp/memcached.pid 

    生成公钥私钥ssh    

             ssh-keygen      

    mac下安装brew

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

  • 相关阅读:
    在ElementUI的 MessageBox 弹框 进行api接口请求
    Vue 报错 (Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be u
    子组件 修改父组件的属性值
    1、Flutter---配置
    Vant轮播预览图片
    vue 中 v-for 和 :key 配套使用
    js--两数之和
    blazor 中没有 blazor WebAssembly App 模板
    Deepin 安装vue-cli
    C# Linq Join & Lambda Join
  • 原文地址:https://www.cnblogs.com/xiaoyueer/p/4066557.html
Copyright © 2011-2022 走看看