摘要:
Linux磁盘空间不足的处理思路: 第一步: 查看磁盘占用的空间 df -h 确定磁盘剩余空间,哪个磁盘占用比较大 第二步: 查看文件夹大小 du -h 文件夹 通常日志文件由于长时间写入不清理,可能会比较大,比如nginx日志 只保留文件倒数多少行内容的命令 1)先将文件A中倒数多少行内容导入到文
阅读全文
posted @ 2022-11-21 16:19
WebLinuxStudy
阅读(407)
推荐(0)
编辑
摘要:
1、查看文件里有多少行wc -l 文件名 2、查看文件里有多少个wordwc -w 文件名
阅读全文
posted @ 2022-11-17 19:27
WebLinuxStudy
阅读(170)
推荐(0)
编辑
摘要:
var json= {"height":120, "width":150};for (var key in json) { console.log(key + ' -- ' + json[key]);}
阅读全文
posted @ 2022-11-17 17:26
WebLinuxStudy
阅读(252)
推荐(0)
编辑
摘要:
function openUrlOnNewPage(url) { let a = document.createElement("a"); a.style = "display:none"; a.target = "_blank"; a.href = url; a.click(); document
阅读全文
posted @ 2022-11-16 10:48
WebLinuxStudy
阅读(202)
推荐(0)
编辑
摘要:
找到 nginx 的配置文件(可通过 ps -aux | grep nginx)nginx.conf ,然后找到网站对应的访问日志文件 access.log 位置,查看访问记录
阅读全文
posted @ 2022-11-08 12:17
WebLinuxStudy
阅读(957)
推荐(0)
编辑
摘要:
Linux下查看nginx配置文件位置,可以通过 ps -aux | grep nginx ,查看 nginx.conf 的位置
阅读全文
posted @ 2022-11-08 12:13
WebLinuxStudy
阅读(875)
推荐(0)
编辑
摘要:
dict = {'key1' : 'val1', 'key2' : 'val2'} 1、添加字典元素方法一:直接添加,给定键值对dict['key3'] = 'val3'print(dict) # {'key1' : 'val1', 'key2' : 'val2', 'key3' : 'val3'}
阅读全文
posted @ 2022-11-08 12:05
WebLinuxStudy
阅读(267)
推荐(0)
编辑
摘要:
出现Warning: Illegal string offset,原因是定义了一个变量为字符串型,然后给这个字符串型的变量中的键赋值。例如:$a = '这是字符串';$a['val'] = 1; //此处会出警告
阅读全文
posted @ 2022-11-08 11:48
WebLinuxStudy
阅读(744)
推荐(0)
编辑
摘要:
给父窗口下的id="#my"赋值123$("#my", window.parent.document).html('123');
阅读全文
posted @ 2022-11-07 13:11
WebLinuxStudy
阅读(88)
推荐(0)
编辑
摘要:
http://httpbin.org/get
阅读全文
posted @ 2022-11-02 11:46
WebLinuxStudy
阅读(20)
推荐(0)
编辑