虚心使人进步

虚心学习,天天向上......
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

mac big sur升级后启动nginx,php56,php71 脚本

Posted on 2021-06-02 17:38  Showker  阅读(203)  评论(0编辑  收藏  举报

mac 启动nginx , php56, php71 (homebrew直接启动了)脚本

//

nginx

/usr/local/Cellar/php52bysk/sbin/php52-fpm start

/usr/local/opt/php5.6/sbin/php-fpm

 

 

mysql不需要加入x.sh,

mysql的是 /usr/local/Cellar/mysql@5.5/5.5.61/homebrew.mxcl.mysql@5.5.plist文件会自动执行。 

如果不想执行,可以需要执行unload

 

 

====

升级mysql5.7

To connect run:

    mysql -uroot

 

mysql@5.7 is keg-only, which means it was not symlinked into /usr/local,

because this is an alternate version of another formula.

 

If you need to have mysql@5.7 first in your PATH, run:

  echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> /Users/showker/.bash_profile

 

For compilers to find mysql@5.7 you may need to set:

  export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib"

  export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include"

 

For pkg-config to find mysql@5.7 you may need to set:

  export PKG_CONFIG_PATH="/usr/local/opt/mysql@5.7/lib/pkgconfig"

 

 

To have launchd start mysql@5.7 now and restart at login:

  brew services start mysql@5.7

Or, if you don't want/need a background service you can just run:

  /usr/local/opt/mysql@5.7/bin/mysql.server start

 

===

升级后又报openssl错误,百度了一下是openssl被升级了,想着如何降级,没找到合适的方法,修改了一下软连接,还是指向1.0.0t的,有效!

ln -snf /usr/local/Cellar/openssl/1.0.2q   /usr/local/opt/openssl

 

===

MacBook-Pro:~ showker$ brew services

Name      Status  User    Plist

mysql@5.5 stopped         

mysql@5.7 started showker /Users/showker/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist

nginx     unknown showker /Users/showker/Library/LaunchAgents/homebrew.mxcl.nginx.plist

php@7.1   error   root    /Library/LaunchDaemons/homebrew.mxcl.php@7.1.plist