归档: 2020/10
Linux下如何快速搜索日志文件中的指定内容
检索行号 1cat /var/log/xxx.log | grep -n "检索内容" 显示从指定行号(1500行)开始1000行 1cat /var/log/xxx.log | tail -n +1500 | head -n 1000
Webpack设置总结
初始化项目12npm init -ynpm install webpack webpack-cli --save-dev 创建 webpack.config.js 123456789const path = require('path');module.exports = { entry: './src/index.js
Nginx日志接入阿里云日志服务
配置Nginx 1vim /etc/nginx/nginx.conf Nginx新增一个日志格式 123log_format timed_combined '$remote_addr - $remote_user [$time_local] "$request" $http_host ' '$status $request_length $body_bytes_sent "$http_referer" ' '"$http_user_agent" $request_time $upstream_response_time "$sent_http_content_type"'; 设置日志输出路径 1access_log /var/log/nginx/aliyun.log timed_combined; 重新加载Nginx 1nginx -s reload
网站SEO技巧分享
提交sitemapGoogle Search Console:https://search.google.com/search-console/about 在“Index”-“Sitemaps”菜单下 百度搜索资源平台-站点管理:https://ziyuan.baidu.com/site/index#/ 在“资源提交”-“普通收录”菜单下可以选择sitemap 统计代码百度统计https://to
去除Java 11 Nashorn Warning
Java 11下调用 12val mgr = ScriptEngineManager()val jsEngine = mgr.getEngineByName("JavaScript") 会产生以下Warning信息 1Warning: Nashorn engine is planned to be removed from a future JDK rele
通过iTerm2来使用Tmux
在iTerm2中使用Tmux,命令中增加tmux -CC tmux -CC iTerm2就会开启一个新窗口来显示这个Tmux窗口,窗口右键菜单中可以进行水平和垂直的split