在shell脚本中,使用-eq、-ne、-gt、-ge、-lt、-le进行整数的比较。英文意思分别为:
-eq :equal(相等)
-ne :not equal(不等)
-gt :greater than(大于)
-ge :greater than or equal(大于或等于)
-lt :less than(小于)
-le :less than or equal(小于或等于)
注意:在shell中这些符号只能用于整数的比较,不能用于字符串。
在shell脚本中,使用-eq、-ne、-gt、-ge、-lt、-le进行整数的比较。英文意思分别为: -eq :equal(相等) -ne :not equal(不等) -gt :greater than(大于) -ge :greater than or equal(大于或等于) -lt :less than(小于)…
在shell脚本中,使用-eq、-ne、-gt、-ge、-lt、-le进行整数的比较。英文意思分别为:
-eq :equal(相等)
-ne :not equal(不等)
-gt :greater than(大于)
-ge :greater than or equal(大于或等于)
-lt :less than(小于)
-le :less than or equal(小于或等于)
注意:在shell中这些符号只能用于整数的比较,不能用于字符串。
配置app.ini [uwsgi] ##执行运行用http,用nginx写socket,注意端口要和flask一致 #http=127.0.0.1:9200 soc…
步骤 1: 检查当前磁盘和LVM配置 首先,你需要查看当前的磁盘和LVM配置。使用以下命令: lsblk 查看当前的分区和LVM卷。 步骤 2: 添加新磁盘 确保新…
测试写性能(创建一个1G的文件,用同步写) dd if=/dev/zero of=test_write bs=1M count=1024 oflag=dsync 图…