🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# mac brew和终端命令 mkdir qq 创建目录 rmdir qq 删除 mvdir qq1 qq2 移动或重命名 pwd 当前目录路径 cd /qq 进入目录 ls -la 显示目录内容 cat qq.txt 显示文件 cp f1 f2 复制文件或目录 rm qq 删除文件或目录 mv f1 f2 移动或复制 kill 33056 终结进程 uname -a 显示系统信息 lsof -i tcp 查看端口 df -h 查看空间 安装,在终端输入 ``` <pre class="calibre14">``` <span class="token">/</span>usr<span class="token">/</span>bin<span class="token">/</span>ruby <span class="token">-</span>e <span class="token4">"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</span> ``` ``` `brew cask install cakebrew` 图形界面 `brew list` 列出所安装软件 `brew install wget` 进行wget的安装 `brew update wget` 更新 `brew uninstall wget` 卸载 `brew search wget` 查找 `brew home wget` 浏览器打开 `brew install elasticsearch` 安装 elasticsearch `brew services start elasticsearch` 启动 elasticsearch `brew services stop elasticsearch` 停止 elasticsearch `brew services restart elasticsearch` 重启 elasticsearch `brew services list` 列出当前状态 brew cleanup清理垃圾 swoole编译安装 ``` <pre class="calibre14">``` 下载swoole源码解压<span class="token2">,</span>不要二进制<span class="token2">,</span>进入swoole目录 在这之前需要安装autoconf插件<span class="token2">,</span>brew install autoconf 执行phpize<span class="token2">,</span>没有就执行其他地方的 <span class="token2">.</span><span class="token">/</span>configure make sudo make install 找到php<span class="token2">.</span>ini配置 extension<span class="token">=</span>swoole<span class="token2">.</span>so 注意swoole<span class="token2">.</span>so要放到ext目录下 查看是否安装成功 php <span class="token">-</span>m ``` ``` 安装docker ``` <pre class="calibre14">``` brew cash install docker 安装 docker <span class="token">--</span>version 查看版本<span class="token2">,</span>必须启动后才有效 https<span class="token2">:</span><span class="token">/</span><span class="token">/</span><span class="token3">3</span>laho3y3<span class="token2">.</span>mirror<span class="token2">.</span>aliyuncs<span class="token2">.</span>com<span class="token">/</span> 阿里云镜像站 docker info 查看信息 docker images 查看镜像 docker pull hello<span class="token">-</span>world 拉取镜像 docker run hello<span class="token">-</span>world 运行 docker search nginx 查找镜像 docker rmi <span class="token">-</span>f nginx 删除镜像 ``` ``` 安装go语言 `brew install go` `go version` 版本 go env 查看环境变量