-
git 常用命令
git 常用命令1. 仓库相关1. git init创建仓库git initgit init <directory> directory 本地目录。2. git clone拉取远程仓库git clone <repo>git clone <repo> <directory> repo Git 仓库。 directory 本地目录。3. git config 显示全部配置文件git config --list 编辑 git 配置文件#针...…
-
Linux图片批量压缩工具ImageMagick
Linux 图片批量压缩工具 ImageMagick安装环境 CentOS安装命令:yum install ImageMagickconvert 压缩命令通过正则查找当前目录下所有大于 50k 的图片,进行等比例 50%的缩放;find ./ -regex '.*\(jpg\|JPG\|png\|PNG\|jpeg\)' -size +50k -exec convert -resize 50%x50% {} {} \;通过正则查找当前目录下所有大于 50k 的图片,进行像素大小控制,con...…
-
Redux入门
入门Redux 是 JavaScript应用的状态容器,提供可预测的状态管理。可以让你开发出行为稳定可预测的应用,运行于不同的环境(客户端、服务器、原生应用),并且易于测试。不仅于此,它还提供超爽的开发体验,比如有一个Redux Devtools可以查看实时预览。Redux 除了和React一起用外,还支持其他 UI 框架。它体小精悍(只有 2kb,包括依赖),却有很强大的插件扩展生态。安装使用 React 脚手架安装 Redux官方推荐的创建React Redux新应用的方式是使用 官方...…
-
CentOS8部署ELK日志分析平台
CentOS 8 部署 ELK 日志分析平台需求 1.开发人员不能登录线上服务器查看日志 2.各个系统都有日志,日志分散难以查找 3.日志数据量大,查找慢,数据不够实时解决办法:部署 ELK 平台ELK 介绍 ELK 是三个开源软件的缩写,分别表示:Elasticsearch , Logstash, Kibana , 它们都是开源软件。新增了一个 FileBeat,它是一个轻量级的日志收集处理工具(Agent),Filebeat 占用资源少,适合于在各个服务器上搜集日志后传输给 Log...…
-
Linux统计文件行数
Linux 统计文件行数简介以及语法说明语法:wc [选项] 文件…说明:该命令统计给定文件中的字节数、字数、行数。如果没有给出文件名,则从标准输入读取。wc 同时也给出所有指定文件的总统计数。字是由空格字符区分开的最大字符串。该命令各选项含义如下: c 统计字节数。 l 统计行数。 w 统计字数。这些选项可以组合使用。输出列的顺序和数目不受选项的顺序和数目的影响。总是按下述顺序显示并且每项最多一列。行数、字数、字节数、文件名如果命令行中没有文件名,则输出中不出现文件名。例如:wc ...…
-
Aria2 Linux 完整安装及使用教程
Aria2 Linux 完整安装及使用教程介绍Aria2 嘛,主要是用来离线下载,功能强大,支持 http/https 直链、ftp、电驴、磁力链接等等,且可以跨平台使用,配合网页端操作,简直是一代下载神器。安装Debian/Ubuntu:可以直接使用命令安装:apt-get -y install aria2CentOS 7+:安装 epel 源:yum install epel-release然后直接安装:yum install aria2 -y配置 Aria23.1 创建必须的文件及文...…