shell脚本常用颜色如下:30:黑31:红32:绿33:黄34:蓝色35:紫色36:深绿37:白色echo-e"\033[31m红色字\033[0m"echo-e"\033[32m绿色字\033[0m"echo-e"\033[33m黄色字\033[0m"echo-e"\033[34m蓝色字\033[0m"让字体变为红
分类:
系统相关 时间:
2020-12-31 11:45:32
阅读次数:
0
计划任务crontab-e*/1****sudosh/root/redis/redis_cluster/7003-cron.sh脚本#!/bin/shredis=`netstat-an|grep":7003"|awk‘$1=="tcp"&&$NF=="LISTEN"{print$0}‘|wc-l`if[$redis-eq0];then#端口被占用执行如下sudo/root/redi
分类:
其他好文 时间:
2020-12-30 11:20:41
阅读次数:
0
大意上是客户端请求经过HandlerMapping的处理,如果匹配到路由(Router)就交给网关的web处理程序(Gateway Web Handler)来处理,经过一系列的调用过滤器链(肯定有责任链模式)后转发到被代理的服务执行真正的调用逻辑。 Gateway Handler Mapping F ...
分类:
其他好文 时间:
2020-12-30 10:36:35
阅读次数:
0
<?php get_template_directory_uri();?> //路径 <?php bloginfo();?> <?php get_search_form();?> //搜索框 <?php the_permalink();?> //查看全文 <?php echo getPostView ...
分类:
其他好文 时间:
2020-12-29 11:34:19
阅读次数:
0
给【远端设备】配置 rpyc 服务 在你远端的设备上使用 ifconfig 或 ipconfig 获取你的 IP 地址,请确保该地址可以 ping 通。 确保远端的设备配置为 Python3 环境,输入 pip3 install rpyc 安装 rpyc 服务,复制下述指令运行即可启动服务。 pyt ...
分类:
编程语言 时间:
2020-12-29 11:18:38
阅读次数:
0
scnzzh@zubt1:~/zzh$ str='I love python.' scnzzh@zubt1:~/zzh$ echo ${str/'python'/'shell'} I love shell. ...
分类:
系统相关 时间:
2020-12-29 11:16:57
阅读次数:
0
pipeline { agent any environment { imagename = "镜像命名" tag = "v${BUILD_NUMBER}" } stages { stage('Pull code') { steps { echo "${imagename}:${tag}" git ...
分类:
编程语言 时间:
2020-12-29 11:16:14
阅读次数:
0
pipeline { agent any environment { imagename = '镜像名' tag = "v${BUILD_NUMBER}" #版本号 } stages { stage('Pull code') { steps { echo "${imagename}:${tag}" ...
分类:
其他好文 时间:
2020-12-29 11:15:03
阅读次数:
0
class father { //定义father类 public function getMethod() { //定义方法 $this->method(); } public function method() { //定义方法 echo '<br />father method'; } } c ...
分类:
Web程序 时间:
2020-12-28 11:40:40
阅读次数:
0
ipconfig 查看ip calc 打开计算器 mspaint 打开画图工具 ping ip or 网址 例如: ping 192.168.1.82 ping www.baidu.com cd desktop 进入桌面 md test 创建test文件夹 rd test 删除文件夹 cd>a.tx ...
分类:
其他好文 时间:
2020-12-28 11:10:09
阅读次数:
0