Fork me on GitHub

随笔分类 -  Mac

摘要:mac ssh 客户端 : 本身mac直接使用终端来ssh连接就很方便,但是使用过程中随着远程服务器的增多和zsh和远程服务器编码不同产生了乱码,决定安装一款ssh终端软件,以下方法亲测可用,感谢提供者,分享一下方便大家学习和参考. 1.打开安装包,拷贝SecureCRT 将其复制到应用程序文件夹中 阅读全文
posted @ 2017-02-22 17:09 archer-wong 阅读(10496) 评论(4) 推荐(0) 编辑
摘要:1. 安装oh my zsh 安装命令: curl -L http://install.ohmyz.sh | sh 修改shell的方式: chsh -s /bin/zsh 2.安装cask(类似于appstore的作用,更快更方便): 安装命令: brew tap phinze/homebrew- 阅读全文
posted @ 2017-02-22 16:52 archer-wong 阅读(21226) 评论(1) 推荐(0) 编辑
摘要:一.首先需要了解 1>mac 一般使用bash作为默认shell 2>Mac系统的环境变量,加载顺序为: 1、系统级别的 /etc/profile /etc/bashrc /etc/paths 2、用户级别的 ~/.bash_profile (mac用的) ~/.bash_login ~/.prof 阅读全文
posted @ 2016-12-15 22:56 archer-wong 阅读(1407) 评论(1) 推荐(0) 编辑
摘要:根目录截图如下 符合unix传统的目录 /bin 传统unix命令的存放目录,如ls,rm,mv等。 /sbin 传统unix管理类命令存放目录,如fdisk,ifconfig等等。 /usr 第三方程序安装目录。 /usr/bin, /usr/sbin, /usr/lib,其中/usr/lib目录 阅读全文
posted @ 2016-12-15 22:43 archer-wong 阅读(3799) 评论(0) 推荐(0) 编辑
摘要:网上有很多文章都是错误的,因为是copy别人的,作者没有自己亲测,不仅不能给新手提供帮助,还会产生严重的误导,以下介绍是我不断的爬坑,亲测的一篇可用教程,,希望能对大家提供些许帮助(Mac版本是sierra),转载请注明出处 一.apache使用的mac自带 基本使用方法: 启动Apache:运行“ 阅读全文
posted @ 2016-12-04 20:28 archer-wong 阅读(18558) 评论(8) 推荐(0) 编辑
摘要:1.介绍 brew是一个软件包管理工具,类似于centos下的yum或者ubuntu下的apt-get,非常方便,免去了自己手动编译安装的不便 brew 安装目录 /usr/local/Cellar brew 配置目录 /usr/local/etc brew 命令目录 /usr/local/bin 阅读全文
posted @ 2016-12-04 19:57 archer-wong 阅读(11107) 评论(0) 推荐(0) 编辑
摘要:Mac OS X 中默认有两个目录可以直接运行你的 Web 程序, 一个是系统级的 Web 根目录:/Library/WebServer/Documents/ 此根目录我们平常使用地址http://localhost来访问 另一个是用户级的根目录,根目录(也是站点目录)是:~/Sites 此根目录我 阅读全文
posted @ 2016-11-29 08:48 archer-wong 阅读(4879) 评论(0) 推荐(0) 编辑
摘要:最简单直接的方式还是使用 Mac 上自带的 Apache 和 PHP。 1.启动 Apache 1>启动apache $sudo apachectl start; 2>启动后,在浏览器中输入 localhost ,可以看到页面上显示 It works。(/Library/WebServer/Docu 阅读全文
posted @ 2016-11-29 08:43 archer-wong 阅读(498) 评论(0) 推荐(0) 编辑
摘要:1.首先在官网下载 https://git-scm.com/download/mac 2.然后安装git(mac自带git) 3设置Git的user name和email: $ git config --global user.name "xxxxx" $ git config --global u 阅读全文
posted @ 2016-11-29 08:36 archer-wong 阅读(843) 评论(0) 推荐(0) 编辑