Skip to content

Instantly share code, notes, and snippets.

@anyboo
Last active June 21, 2018 11:09
Show Gist options
  • Save anyboo/892c8e427972efc6387113cf31fb92b2 to your computer and use it in GitHub Desktop.
Save anyboo/892c8e427972efc6387113cf31fb92b2 to your computer and use it in GitHub Desktop.
Homebrew manual

brew & brew cask command

introduce brew & brew cask

@anyboo
Copy link
Author

anyboo commented Mar 14, 2018

Nodejs version 8.10.0 installation

brew install node@8
echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

@anyboo
Copy link
Author

anyboo commented Mar 14, 2018

openssl-1.0.2n.high_sierra.bottle

A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in

  /usr/local/etc/openssl/certs

and run

  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have this software first in your PATH run:

  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

For pkg-config to find this software you may need to set:

    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

mongodb_3.4-3.4.13.high_sierra.bottle

This formula 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 this software first in your PATH run:

  echo 'export PATH="/usr/local/opt/mongodb@3.4/bin:$PATH"' >> ~/.bash_profile

To have launchd start mongodb@3.4 now and restart at login:

brew services start mongodb@3.4

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

  mongod --config /usr/local/etc/mongod.conf

@anyboo
Copy link
Author

anyboo commented Mar 14, 2018

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/.

To have launchd start nginx now and restart at login:

brew services start nginx

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

  nginx

@anyboo
Copy link
Author

anyboo commented Mar 14, 2018

$ brew services start nginx

==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 14 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 0 formulae (43 files, 55.7KB)
==> Successfully started nginx (label: homebrew.mxcl.nginx)

@anyboo
Copy link
Author

anyboo commented Jun 21, 2018

How do I tell Homebrew to stop running brew update every time I want to install something?

HOMEBREW_NO_AUTO_UPDATE=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment