可以执行下面命令 php -r "readfile('https://getcomposer.org/installer');" | php This will install composer to the current directory so that you can use php com ...
分类:
其他好文 时间:
2020-06-16 18:19:03
阅读次数:
134
1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去.2.添加sudo文件的写权限,命令是:chmod u+w /etc/sudoers3.编辑sudoers文件vi /etc/sudoers找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL ...
分类:
其他好文 时间:
2020-06-16 18:17:50
阅读次数:
122
categoryList.ForEach(p => p.Description = "-1"); var zpclist = from t in categoryList let tp = (from p in categoryList.Select(s => s.ParentRowGuid) se ...
分类:
其他好文 时间:
2020-06-16 18:15:14
阅读次数:
64
在渲染进程(UI界面)中使用shell模块 //在文件管理器中打开 const { ..., shell } = require('electron'); const showFile = () => { if (!filePath) { return alert('This file has no ...
分类:
系统相关 时间:
2020-06-16 18:13:06
阅读次数:
67
redis是一个内存数据库,数据保存在内存中,但是我们都知道内存的数据变化是很快的,也容易发生丢失。幸好Redis还为我们提供了持久化的机制,分别是RDB(Redis DataBase)和AOF(Append Only File)。 持久化流程: 既然redis的数据可以保存在磁盘上,那么这个流程是 ...
分类:
其他好文 时间:
2020-06-16 18:10:48
阅读次数:
72
添加:"**/*.meta":true { "git.ignoreLimitWarning": true, "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Sto ...
分类:
Web程序 时间:
2020-06-16 16:54:37
阅读次数:
72
#-*- coding = utf-8 -*-#@Time : 2020/6/16 12:02#@Authur : Agur Zheng#@File : Test_if.py#@Software : PyCharm# if后边跟判断条件,为真继续执行,为假转到下一个elif执行新的判断或者else继 ...
分类:
编程语言 时间:
2020-06-16 15:39:22
阅读次数:
55
1.问题描述 现在新建了一个用户logan,无法正常使用SQL*Plus命令,经过查询后,发现需要配置Oracle环境变量信息 2.解决办法 进入到Oracle用户家目录下/home/oracle,使用命令cat .bash_profile查看其中的内容,将其中与Oracle相关的变量信息copy到 ...
分类:
数据库 时间:
2020-06-16 15:33:57
阅读次数:
77
音频文件转base64 <input type="file" id="fileInput"> <script> var fileInput = document.querySelector('#fileInput'); fileInput.onchange = function () { var f ...
分类:
其他好文 时间:
2020-06-16 15:12:46
阅读次数:
693
Linux file命令用于辨识文件类型。 通过file指令,我们得以辨识该文件的类型。 语法 file [-bcLvz][-f <名称文件>][-m <魔法数字文件>...][文件或目录...] 参数: -b 列出辨识结果时,不显示文件名称。 -c 详细显示指令执行过程,便于排错或分析程序执行的情 ...
分类:
系统相关 时间:
2020-06-16 15:05:48
阅读次数:
76