上一页 1 2 3 4 5 6 7 8 ··· 36 下一页
摘要: 1.导出指定表的数据 mysqldump -t database -u username -ppassword --tables table_name1 table_name2 table_name3 >D:\db_script.sql 2.导出指定表的结构 mysqldump -d databas 阅读全文
posted @ 2024-02-22 00:14 lucky_tomato 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 使用git pull来更新代码时,有时会遇到以下的问题:error: Your local changes to the following files would be overwritten by merge:....phpPlease, commit your changes or stash 阅读全文
posted @ 2024-02-22 00:10 lucky_tomato 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 比如:https://xxx/test/abc/cat.jpg?userid=user1&auth=123 按顺序匹配,首先尝试读取$uri,这里的uri是指/test/abc/cat.jpg,尝试去当前工作目录下的/test/abc/目录读取这个cat.jpg的静态文件, 发现没有,就去匹配第2个 阅读全文
posted @ 2024-02-22 00:08 lucky_tomato 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 使用函数 list() [] 直接使用 用哪种最快,使用[]最快 这是因为 是 [] 字面语法( literal syntax ),而 list() 是构造函数调用。毫无疑问,调用函数需要额外的时间。 同理,在创建字典时,我们也应该利用 {} 而不是 dict() import timeit pri 阅读全文
posted @ 2024-02-22 00:02 lucky_tomato 阅读(24) 评论(0) 推荐(0) 编辑
摘要: curl -I -o /dev/null -s -w %{http_code} http://domain 阅读全文
posted @ 2024-02-21 22:29 lucky_tomato 阅读(57) 评论(0) 推荐(0) 编辑
摘要: find /date/ -type f -name "*.txt" -exec cp {} /tmp \; ind /date/ -type f -name "*.txt" | xargs cp -t /tmp 阅读全文
posted @ 2024-02-21 22:19 lucky_tomato 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 一般是windows下文本编辑问题,上传到Linux服务器识别不了,最简单解决方法,就把脚本内容复制粘贴到Linux服务器脚本保存就行 阅读全文
posted @ 2024-02-21 22:13 lucky_tomato 阅读(76) 评论(0) 推荐(0) 编辑
摘要: grep -A n "keyword" filename #显示匹配到的之后n行内容 grep -B n "keyword" filename #显示匹配到的之前n行内容 grep -C n "keyword" filename #显示匹配到的前后n行内容 阅读全文
posted @ 2024-02-21 22:05 lucky_tomato 阅读(898) 评论(0) 推荐(0) 编辑
摘要: https://ipw.cn/ipv6webcheck/ 阅读全文
posted @ 2024-02-21 21:07 lucky_tomato 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 停止docker报错,是因为docker在关闭状态下被访问会触发自动唤醒机制: Warning: Stopping docker.service, but it can still be activated by: docker.socket 解决: systemctl stop docker sy 阅读全文
posted @ 2024-02-21 20:39 lucky_tomato 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 36 下一页