上一页 1 ··· 204 205 206 207 208 209 210 211 212 ··· 367 下一页
摘要: 1、问题 -bash: /mnt/c/Windows/System32/drivers/etc/hosts: Permission denied 2、解决方法 右击,选属性 选安全: 选Users: 点编辑: 点users: 选完全控制: 选应用: 选是: 3、测试效果 可以修改了。 阅读全文
posted @ 2022-04-24 10:56 小鲨鱼2018 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 形式1、curl xxxx > result root@DESKTOP-1N42TVH:/home/test2# curl https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20220402.zip > a.zip 形式2:curl 阅读全文
posted @ 2022-04-23 23:59 小鲨鱼2018 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 1、问题: Network error: Connection refused 2、解决方法 root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status * sshd is not running 3、 root@DESKTOP-1N42TVH:~# /etc/in 阅读全文
posted @ 2022-04-23 22:54 小鲨鱼2018 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 1、问题 openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory 2、查找 libssl.so.1.1 文件 [ro 阅读全文
posted @ 2022-04-16 21:31 小鲨鱼2018 阅读(14595) 评论(6) 推荐(4) 编辑
摘要: 1、测试函数 [root@rhel7pc1 test]# ls test.sh [root@rhel7pc1 test]# cat test.sh ## $1 为第一个参数, $2为第二个参数,其余以此类推 #!/bin/bash function fun_test { seq $1 } 2、加载测 阅读全文
posted @ 2022-04-16 18:34 小鲨鱼2018 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 1、创建自定义函数 格式: function name { command } [root@rhel7pc1 test]# ls test.sh [root@rhel7pc1 test]# cat test.sh ## shell中创建函数格式 #!/bin/bash function fun_te 阅读全文
posted @ 2022-04-16 18:23 小鲨鱼2018 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@rhel7pc1 test]# ls [root@rhel7pc1 test]# a=100 ## 生成测试变量 [root@rhel7pc1 test]# echo $a 100 [root@rhel7pc1 test]# echo $SHELL ## 系统环境变量 /bin/b 阅读全文
posted @ 2022-04-16 18:01 小鲨鱼2018 阅读(2385) 评论(0) 推荐(0) 编辑
摘要: 1、查看系统环境变量:env、export 2、查看自定义变量: set、declare 测试系统环境变量: [root@rhel7pc1 test]# ls [root@rhel7pc1 test]# env > a.txt && export > b.txt ## 将env和export命令的输 阅读全文
posted @ 2022-04-16 17:51 小鲨鱼2018 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1、自定义变量:人为设置的变量 系统环境变量:系统默认的变量 2、查看自定义变量 和 系统环境变量 [root@rhel7pc1 test]# echo $a [root@rhel7pc1 test]# a=100 ## 自定义变量 [root@rhel7pc1 test]# echo $a 100 阅读全文
posted @ 2022-04-16 17:00 小鲨鱼2018 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@rhel7pc1 test]# cat test.sh #!/bin/bash NUM=$[RANDOM % 100 + 1] TIMES=0 while : do read -p "please input a 1~100 num: " ANS TIMES=$[TIMES+1] 阅读全文
posted @ 2022-04-16 13:58 小鲨鱼2018 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 204 205 206 207 208 209 210 211 212 ··· 367 下一页