- 博客(8)
- 收藏
- 关注
转载 mac 安装brew 时候root用户对 /usr/local permission denied
安装brew时候出现对usr/local的权限问题,然后执行:发现root 用户对于该目录操作也存在权限问题。最终解决办法是重新安装brew在MAC上安装homebrew事先博客进行安装,根据步骤进行下去,同样在brew update的时候出现报错:Error: /usr/local must be writable! 错误,在该文章中也给出解决办法(sudo chown -R $(who...
2018-12-19 09:56:51
3345
原创 Mongo3.4增加用户名和密码
db.createUser({user: "testdb1u1", pwd: "xyz123", roles: [{ role: "dbOwner", db: "testdb1" }]})
2018-07-09 11:56:11
437
原创 SQL注入基本类型以及如何防止sql注入
注入类型:1.数字注入select * from users where name = jack and password = 1 or 1=1 (password )2.字符串注入select * from user where name = jack # and password = sdjakfjsadklfjklsdfdkls (# ,-- 符号后的sql语句都被注释掉了)预防SQ...
2018-07-07 16:24:44
462
转载 Python yield 与 send 实现协程
我们来看看在函数内部含有yield语句达到的效果。首先,我们来看看以下代码:def foo(): while True: x = yield print("value:",x)g = foo() # g是一个生成器next(g) # 程序运行到yield就停住了,等待下一个nextg.send(1) # 我们给yield发送值1,然后这个值被赋值给...
2018-06-07 21:00:24
381
转载 Failed to instantiate CLSID_VirtualBox w/ IVirtualBox, but CLSID_VirtualBox w/ IUnknown works.
悲催!突然停电!vagrant未正常关闭,直接关机,再次启动电脑(win7 64位)后vagrant up 报错信息如下:百求良医,终得一解!1, win+r 快捷键打开 “运行”,输入regedit 打开注册表2,找到 HKEY_CLASSES_ROOT\CLSID\{00020420-0000-0000-C000-000000000046}InprocServer32 修改 第一行(默认)的...
2018-05-02 15:58:15
1418
原创 Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxs
vagrant 突然有一天发现共享文件夹失效,vagrant up 后提示:Vagrant was unable to mount VirtualBox shared folders. This is usuallybecause the filesystem "vboxsf" is not available. This filesystem ismade available via
2018-01-22 15:36:09
4528
2
转载 laravel定时任务(使用linux Cron)(转载)
laravel中有一个很强大上的功能,只需要在服务器上添加一个cron条目,就可以定时执行所有的laravel任务。现在有如下数据表:我想让cron表中的cron字段的值每分钟增加1,那么我需要如下步骤:1、在App\Console\Kernel.php中编写laravel代码protected function schedule(Schedule $s
2017-12-13 10:37:21
1734
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人