Monthly Archives: 2018年4月
← Continue Reading
由于MAC系统启用了SIP(System Integerity Protection)导致root用户也没有修改权限,所以我们需要屏蔽掉这个功能,具体做法是:
1.重启电脑.
2.command + R 进入recover模式
3.点击最上方菜单使用工具,选择终端
4.运行命令csrutil disable
5.当出现successfully字样,代表关闭成功!
← Continue Reading
error: The requested URL returned error: 401 Unauthorized while accessing
在使用git pull、git push、git clone会报类似如下的错误:
error: The requested URL returned error: 401 Unauthorized while accessing https://git...
← Continue Reading
CentOS安装PDFtk:
第1步:安装依赖:
yum install gcc gcc-c++ libXrandr gtk2 libXtst libart_lgpl libgcj
###:(如果libgcj 安装失败,使用其他方式源码安装|rpm包安装)
第2步:安装PDFTK
yum install pdftk-2.02-1.el6.x86_64.rpm
第3步:查看是否安装成功:
...
← Continue Reading
在Mac下安装好了PHP开发环境(PHP-FPM,Nginx,MySql), 想设置成开机自启动,原来以为和一般的Linux系统一样,也是在rc.d这样目录放置启动脚本。在网上查了一些资料,发现苹果应该是把它完全封闭了,只能利用Mac系统里的Launchctl来做这个事。
Launchctl 其实就是写一个 *.plist 的文件,它的作用和 Linux 里的 Crontab 的作用是一样的。下面...