brew 安装 mysql
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start
==> Summary
🍺 /usr/local/Cellar/mysql/8.0.23_1: 298 files, 297.7MB
==> Caveats
==> protobuf
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/protobuf
==> mysql
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
mysql.server start
输入 mysql_secure_installation 自己设置密码
…
以下是 nvm安装:
brew install nvm //安装nvm
然后 其次需要在shell的配置文件(~/.bash_profile,没有的话自行touch .bash_profile)中添加:
For NVM
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
终端命令执行顺序:
cd ~
vim .bash_profile
按shift i键进入insert转态 添加上述内容;
写完后按esc键退出insert转态,再输入:wq(保存退出);
接着重新source
source .bash_profile
好了 上面完成了nvm的安装与环境配置工作,接下来进入主题安装node:
nvm ls-remote //查看 所有的node可用版本
nvm install xxx //下载你想要的版本
nvm use xxx //使用指定版本的node
nvm alias default xxx //每次启动终端都使用该版本的node
更多命令请输入 nvm --help去获取