MAC开发环境安装
安装sancha cmd:
安装:
https://www.sencha.com/products/extjs/cmd-download/
cmd运行
$ open .bash_profile
修改文件
export PATH="senchaCmd安装的路径:$PATH"
安装ruby:
1)安装 Homebrew
相关网址: http://brew.sh
命令行执行:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2)安装 ruby
相关网址:https://www.ruby-lang.org/en/documentation/installation/#homebrew
命令行执行:
brew install ruby
安装nodejs:
相关网址:https://nodejs.org
nodejs使用,错误提示: Please try running this command again as root/Administrator.
——> 获取系统管理员权限:
sudo chown -R $USER /usr/local
安装 cordova:
执行命令 npm install -g cordova
安装 ant:
相关网址:http://ant.apache.org/bindownload.cgi
配置path 安装目录/bin
安装mysql 5.7.0 +
1.下载,安装
2.记下随机密码
3. 命令行输入
sudo su(可能要加权限)
alias mysql=/usr/local/mysql/bin/mysql
mysql -u root -p
输入随机密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '98721';