Monthly Archives: August 2018

Shell script variable not empty (-z option)

Of course it does. After replacing the variable, it reads , which is not a valid  if ] ... Read More | Share it now!

Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数

Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数 特殊变量列表 变量 含义 $0 当前脚本的文件名 $n 传递给脚本或函数的参数。n... Read More | Share it now!

Shell中的数组及其相关操作

https://blog.csdn.net/Jerry_1126/article/details/52027539 Shell中数据类型不多,比如说字符串,数字类型,数组。数组是其中比较重要的一种,其重要应用场景,可以求数组长度,元素长度,遍历其元素,元素切片,替换,删除等操作,使用非常方便。 Shell中的数组不像JAVA/C,只能是一维数组,没有二维数组;数组元素大小无约束,也无需先定义数组的元素个数;但其索引则像JAVA/C/Python,从0开始,下面其常用的方式进行总结. 【数组声明】 备注: 1)... Read More | Share it now!

Linux命令——timeout

命令简介 运行指定的命令,如果在指定时间后仍在运行,则杀死该进程。用来控制程序运行的时间。 使用方法 timeout 数字 命令... Read More | Share it now!

Using nginx as HTTP load balancer

Introduction Load balancing across multiple application instances is a commonly used technique for optimizing resource utilization, maximizing throughput, reducing latency, and ensuring fault-tolerant configurations. It is possible to use nginx as a... Read More | Share it now!

详解python调用redis lua内嵌脚本的高级用法

Lua 脚本功能是 Reids 2.6 版本开始提供的高级功能, 我们可以通过redis内嵌的 Lua 环境的进行搞复杂的需求。 使用内置的lua脚本环境可以解决Redis长久以来不能高效地处理 CAS... Read More | Share it now!

w3mCentOS下安装,及w3m的使用

△△△△△△△△如果你用的是centos或readhat企业版,可以用下面的命令安装。△△△△△△△△△△ sudo yum install w3m △△△△△△△△如果你用的是Debian或ubuntu,可以用下面的命令安装。... Read More | Share it now!

prometheus/client_python

Prometheus Python Client The official Python 2 and 3 client for Prometheus. https://github.com/prometheus/client_python Three Step Demo One: Install the client: pip install prometheus_client Two: Paste the following into a Python interpreter: from... Read More | Share it now!

Protected: portraiture注册码(亲测有效)pw123

There is no excerpt because this is a protected post.

Python实现redis的自增操作

在传统的数据库中, 如果实现一个计数器的操作, 需要先去数据库中读取该值, 再程序中加1, 再讲最新的值存入数据库. 用户操作的流程步骤多不说, 还容易出现数据安全性的问题,... Read More | Share it now!