1.通过https://mirrors.tuna.tsinghua.edu.cn镜像源安装了MySQL5.7.22 rpm -ivh --force --nodeps https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql57-community-el7/mysql-community-client-5.7.22-1.el7.x86_64.rpm rpm -ivh --force --nodeps https://mirrors.tuna.tsi…
github & personal access token OAuth https://github.com/xgqfrms/webtrc-in-action/issues/1#issuecomment-629671519 access token https://github.com/settings/tokens/new Make sure to copy your new personal access token now. You won't be able to see it aga…
本文介绍下如何配置VSTS(visual studio team service,其实就是微软SaaS版的TFS)通过Personal Access Token访问其下的Git代码库. 问题 使用git的时候,每次拉取和推送都需要输入密码是一件挺讨厌的事. 当我们使用github来托管代码时,github提供了几套机制来认证客户端,该配置页面如下图: github的帮助文档很完善,这里就不展开了,具体参见截图下方小字链接generating SSH keys或generate a GPG key…
错误: remote: HTTP Basic: Access denied remote: You must use a personal access token with ‘api’ scope for Git over HTTP. remote: You can generate one at https://github.com/profile/personal_access_tokens 错误原因: You must use a personal access token with ‘…
安装了nodejs后在命令行运行npm报错:Error: Cannot find module 'internal/util/types' 解决方法:删除目录“C:\Users\mengxiaobo\AppData\Roaming\npm\node_modules”下的npm文件夹…
安装zsh之后,在命令行输入 node -v,会出现 command not found: node. 出现原因是:使用bash输入终端指令识别得是~/.bash_profile,而安装zsh则无法识别~/.bash_profile,需要添加~/.zshrc. 具体看node的github之readme.…
原文 有时候在使用用户登陆Linux系统时会发现,命令行提示符成了:-bash-4.1$,不显示用户名,路径信息. 原因:用户家目录里面与环境变量有关的文件被删除所导致的 也就是这俩文件:.bash_profile .bashrc 这两个文件被删除了,导致了这个错误 解决方法:从/etc/skel把丢失的文件 复制回来就可以了 -bash-4.1$ cp /etc/skel/.bash* ~ -bash-4.1$ logout ##复制回来后,登出用户,然后在登陆用户查看是否已经解决 [root…
GitHub是一个开源的大仓库,我们经常从github上下载项目进行学习和研究,下面是一个完整的步骤——往GitHub上传一个新项目. 一.注册GitHub账号 1.注册GitHub账号,地址:https://github.com 注册账户 账户选择 2.登录: 登录.png 3.登录之后的页面,是我们star其他人的一些信息,类似于QQ空间的好友状态 D2A62592-D46E-43B8-82B5-1628131CBC67.png 二.配置GitHub的SSH key 1.查看系统中是否配置过…
在 windows CMD 下运行composer 出现错误提示: 不是内部或外部命令,也不是可运行的程序或批处理文件,这是因为没有配置 PATH 环境变量. 以 win10 为例,找到此电脑右击选择属性,点击左侧的高级系统设置,选择高级 > 环境变量 弹出环境变量窗口,找到PATH,点击编辑 在编辑环境变量窗口,输入你的 php.exe 所在的路径(对应phpstudy选择的PHP版本),保存后要重启一下电脑才会生效. 重启前最好确认一下系统变量是否齐全…
问题背景 最近升级个人macbook 从 10.13 到 10.14 在终端输入 git 不能用了,发现是重装操作系统后原来的 Command Line Tools 被自动卸载了, 采用 xcode-select --install 命令发现 currently unavailable. 解决方法 可以从网上下载适配个人 macbook 版本的开发工具,地址为https://developer.apple.com/download/more/.需要用自己的 AppleID 先登录才可以下载.下载…