随笔分类 -  Tools

摘要:--prefer-dist 会从github上下载.zip压缩包,并缓存到本地。下次再安装就会从本地加载,大大加速安装速度。但她没有保留.git文件夹,没有版本信息。适合基于这个包进行开发。 --prefer-source 会从github上克隆源代码,不会在本地缓存。但它保留了.git文件夹,从而 阅读全文
posted @ 2019-04-03 16:38 昊晗远昂 阅读(1628) 评论(0) 推荐(0)
摘要:CentOS添加环境变量的三种方式,以添加php环境变量为例,假定php的安装目录为 /usr/local/php5 一、仅对当前会话临时生效 二、仅对当前用户永久生效 编辑 ~/.bash_profile文件,在PATH=$PATH:$HOME/bin行后添加 :/usr/local/php5/b 阅读全文
posted @ 2019-01-23 23:59 昊晗远昂 阅读(2494) 评论(0) 推荐(0)
摘要:1、下载 下载地址: https://www.percona.com/downloads/percona-toolkit/LATEST/ 2、安装 缺少 perl-DBI perl-DBD-MySQL perl-IO-Socket-SSL 依赖包,通过yum安装即可 再次安装 percona-too 阅读全文
posted @ 2019-01-19 12:17 昊晗远昂 阅读(1507) 评论(0) 推荐(0)
摘要:git push到远程仓库时提示:fatal: The current branch master2 has no upstream branch. To push the current branch and set the remote as upstream, use git push --s 阅读全文
posted @ 2018-11-23 16:48 昊晗远昂 阅读(16944) 评论(0) 推荐(0)
摘要:从github上git clone下的项目,添加或修改文件后,git push时出现"Everything up-to-date" , 即“一切都是最新的'。 通过 git status 发现有文件未提交进本地仓库,执行 git add . 和 git commit -m "备注" 后,重新执行gi 阅读全文
posted @ 2018-11-23 14:05 昊晗远昂 阅读(812) 评论(0) 推荐(0)
摘要:VI 即 Visual Interface,可视化接口,VIM是VI的增强版 (improved),两张图总结vim常用命令。 图片来自 https://www.cnblogs.com/yangjig/p/6014198.html 阅读全文
posted @ 2018-11-21 15:20 昊晗远昂 阅读(606) 评论(0) 推荐(0)
摘要:一、目录操作 1、cd 即change directory,改变目录,如 cd d:/www,切换到d盘的www目录。 2、cd .. cd+空格+两个点,回退到上一目录。 3、pwd 即 print working directory, 打印工作目录,显示当前所在路径。 4、ls 即list,列出 阅读全文
posted @ 2018-11-20 17:43 昊晗远昂 阅读(674) 评论(0) 推荐(0)
摘要:SVN是一个开放源代码的版本控制系统,分为客户端和服务端。就windows系统而言,客户端通常使用 TortoiseSVN,下载地址:https://tortoisesvn.net/ ,而服务端通常分为 Subversion 和 VisualSVN Server 两种,下面就服务端做简要对比。 1、 阅读全文
posted @ 2018-11-12 09:55 昊晗远昂 阅读(860) 评论(0) 推荐(0)