`
文章列表

brew 安装 Permission

    博客分类:
  • Mac
brew install carthage   报错:Permission denied @ dir_s_mkdir - /usr/local/Frameworks   cd /usr/local/ mkdir Frameworks   之后报错: Linking /usr/local/Cellar/carthage/0.32.0... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks/CarthageKit.framework   sudo chown $(whoami):admin /usr/l ...

npm 镜像

    博客分类:
  • Mac
  http://registry.cnpmjs.org http://registry.npm.taobao.org   设置: npm config set registry http://registry.npm.taobao.org   $ nrm ls * npm ----- https://registry.npmjs.org/ cnpm ---- http://r.cnpmjs.org/ taobao -- https://registry.npm.taobao.org/ nj ------ https://registry. ...

Django 版本查看

    博客分类:
  • Mac
python >>> import django >>> print django.VERSION (1, 8, 0, 'final', 0)  
Mac: export PATH=$PATH:/usr/local/mysql/bin  Ubuntu: sudo apt-get install libmysqlclient-dev     参考:https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
    使用  sudo pip install django-bootstrap  不成功,改为: pip install --user django-bootstrap  
rm -rf /Library/Application Support/VMware rm -rf /Library/Application Support/VMware Fusion rm -rf /Library/Preferences/VMware Fusion rm -rf ~/Library/Application Support/VMware Fusion rm -rf ~/Library/Caches/com.vmware.fusion rm -rf ~/Library/Preferences/VMware Fusion rm -rf ~/Library/Prefer ...
rpm -ivh jdk-8u131-linux-x64.rpm  查看安装信息: java -version  
getconf LONG_BIT  CentOS 版本: cat /etc/issue  查看CentOS内核版本: cat /proc/version uname -a  
关闭本地源: 修改/etc/yum.repos.d/CentOS-Media.repo enabled=1改成enabled=0  
列出安装的Java信息: yum list installed |grep java  依次卸载列出的openjdk: yum -y remove java-1.6.0-openjdk.x86_64  

mac 安装maven

    博客分类:
  • JAVA
  tar xzvf apache-maven-3.3.9-bin.tar.gz   sudo mv apache-maven-3.3.9 /opt   sudo vi /etc/profile 添加如下代码: export PATH=/opt/apache-maven-3.3.9/bin:$PATH   mvn -v   参考:http://maven.apache.org/install.html  

RVM 安装Ruby Linner

    博客分类:
  • Ruby
curl -L get.rvm.io | bash -s stable   source ~/.rvm/scripts/rvm   rvm -v   sudo chown -R $(whoami) /usr/local   brew update   rvm install ruby-2.4.0   sudo gem install linner  

开始Cordova

安装: 1.下载并安装Node.js    2.安装cordova及Ionic sudo npm install -g cordova ionic  Cordova创建工程 cordova create hello com.example.hello HelloWorld cd hello cordova platform add ios cordova platform add amazon-fireos cordova platform add android cordova platform add blackberry10 cordova platform ...
xcode-select --install  
使用 cdnjs.cloudflare.com 的IP,比如:198.41.215.67   修改hosts   sudo vi /etc/hosts  打开是快了,不过还是报那个错,看样子还是自己在内网架个服务器比较方便
Global site tag (gtag.js) - Google Analytics