最新动态

今日:0  |  文章:1159
汇集全站版块最新文章
admin
小绿叶技术博客 Lv2 超级管理员

awk 计算银行利率利息-shell

#!/bin/bash# 计算一个信用卡利率费用:read -p "请输入本金:" bj ; # read 接收用户输入信息,-p 连接字符串read -p "请输入日息:" rx ;read -p "请输入时间:" day ;for((i=1;i<=$day;i++))doecho -ne "(1+$rx)*" # -ne 取消换行打印doneecho ""                  &nb
 
shell   1453   2020-05-05
admin
小绿叶技术博客 Lv2 超级管理员

解决方案:卸载 iptables 系统出现异常瘫痪 ifconfig 手动添加默认路由

卸载了iptales 会导致网卡驱动丢失,远程无法连接,此时可以:进入VNC 或者本地操作界面,执行一下命令ifconfig eth0 xxx.xxx.xxx.xxx netmask 255.255.255.0 # 外网IP地址和掩码route add default gw xxx.xxx.xxx.xxx # 子网IP地址yum install iptables # 重新安装iptablesyum -y install
 
linux   1688   2020-05-03
admin
小绿叶技术博客 Lv2 超级管理员

解决方案:Nginx报错Error520/521:failed (SSL: error:02001002

Stoping nginx... nginx is not running.Starting nginx... nginx: [emerg] cannot load certificate key "/www/server/panel/vhost/cert/yun.eisc.cn/privkey.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/ww
 
linux   2333   2020-05-03
admin
小绿叶技术博客 Lv2 超级管理员

批量添加IP白名单

#/bin/basha=(                                      # 请将IP地址放置括号内,分隔符是换行或者空格111                      &nbs
/精华
自动化运维linux   2963   2020-05-02
admin
小绿叶技术博客 Lv2 超级管理员

shell流程语句-shell

#!/usr/bin/bashecho " # echo 打印一段话####################欢迎使用【 小绿叶技术博客 】 自主研发的 shell 流程控制脚本1. backup # 请输入 1 或者 backup2. copy3. quit####################"read -p "please enter [1|2|3]:" re # read接收命令传来的值,变量为 re  # -p "" 打印字符串case
 
自动化运维linux   1539   2020-04-30
admin
小绿叶技术博客 Lv2 超级管理员

shell 打印99乘法口诀表-shell

# 方法1#!/bin/bashfor((i=1;i<=9;i++)) # for循环,双小括号属性;限制变量 i 初始值和最大值,自加加 # 外循环一次 都是1,内循环第一次都是1自加加。内循环自加到最大结束 # 然后外循环第二次开始执行都是2,内循环自加加1 2 # 第三次 外一直是3    内1 2 3do # do 行动 for((j=1
 
shell   1465   2020-04-28
admin
小绿叶技术博客 Lv2 超级管理员

awk自定义计算公式和返回结果-shell

#!/bin/bashecho "请输入客户总数:"read z; # read 获取命令传来的值echo "请输入每个客户需要时间。单位秒"read mg;awk 'BEGIN {  x = '"$z"' # 使用符号  '"  "'  内双引号,外单引号;获取外部变量的值  y = '"$mg"'  result = x / y; # 自定义计算公式printf "用户总数和每个用户需要的时间为: (用户总数x=%f
 
shell   1473   2020-04-27
admin
小绿叶技术博客 Lv2 超级管理员

linux centos 更新同步时间 修改时间时区为北京

# centos7 更新同步时间yum install -y ntpdate # 安装工具tzselect                                                      &nb
 
linux   1434   2020-04-27
admin
小绿叶技术博客 Lv2 超级管理员

shell awk内置函数-shell基础

# 算数函数# awk 使用外部变量的值 用符号引用,内双引号,外单引号:  ' "" '  awk 'BEGIN {  PI = 3.14159265 # 参数1. 圆周率  x = -10 # 参数2.x轴线长度  y = 10  result = atan2 (y,x) * 180 / PI; # 【 正切公式 】:x/y的反正切,result&
 
shell   1632   2020-04-25
admin
小绿叶技术博客 Lv2 超级管理员

Warning: Division by zero in currency.php on line 141 报错处理方案

Warning: Division by zero in /home/googlec1/domains/googleco.ltd/public_html/admin/model/localisation/currency.php on line 141Warning: Division by zero in /home/googlec1/domains/googleco.ltd/public_html/admin/model/localisation/currency.php on line 141War
 
网站建设   2863   2020-04-18
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息