上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页
摘要: Python2使用virtualenv创建虚拟环境 1. 安装virtualenv : pip2 install virtualenv 2. 在当前目录创建虚拟环境命令: python2 -m virtualenv ven2 3. 进入虚拟环境: source venv2/bin/activate 阅读全文
posted @ 2022-02-12 08:43 船长博客 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: 可多人实时协作在线代码分享工具 – codeshare.io工具地址: https://codeshare.io/ https://codeshare.io/iso 直接在网址后输入想要的网址,如iso,就能生成相应的页面,其他人输入相同的网址也能够看到该页面 https://www.codepil 阅读全文
posted @ 2022-02-09 11:52 船长博客 阅读(446) 评论(0) 推荐(1) 编辑
摘要: 通常把需要执行命令加入到/etc/rc.local即可开机自动执行。有时候不确定什么原因不管用(也可进一步调查原因),或使用下面这个方法: cd /etc/init.d #test.sh #!/bin/bash case "$1" in start) touch /tmp/abcd ;; stop) 阅读全文
posted @ 2022-02-09 09:46 船长博客 阅读(1312) 评论(0) 推荐(1) 编辑
摘要: 不积跬步,无以至千里;不积小流,无以成江海 2024-3-7: 积分 - 492396 排名 - 1330 随笔 - 401 文章 - 1 评论 - 20 阅读 - 76万 近半年代码写的少了,a56爆大奖在线娱乐也没有产出博客,厚积薄发,加油! 2023-10-10: 积分 - 473652 排名 - 1375 阅读全文
posted @ 2022-01-31 12:59 船长博客 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 僵尸进程: 11063 root 0 Z [sh] 11068 root 0 Z [sh] 11072 root 0 Z [sh] 11075 root 0 Z [sh] 11078 root 0 Z [sh] 11080 root 0 Z [sh] 11082 root 0 Z [sh] 1108 阅读全文
posted @ 2022-01-29 18:37 船长博客 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 解决:命令前加exec 转自:https://stackoverflow.com/questions/6742635/popen-creates-an-extra-sh-process 阅读全文
posted @ 2022-01-29 18:19 船长博客 阅读(89) 评论(0) 推荐(0) 编辑
摘要: In Bourne shell(sh), use the . command to source a file 使用方法: . filename 示例: . /var/work/venv3/bin/activate 参考: https://stackoverflow.com/questions/13 阅读全文
posted @ 2022-01-26 11:30 船长博客 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 安装pytest: pip install -U pytest root#pytest --version This is pytest version 4.6.11, imported from /usr/local/lib/python2.7/dist-packages/pytest.pyc s 阅读全文
posted @ 2022-01-22 09:29 船长博客 阅读(284) 评论(0) 推荐(1) 编辑
摘要: https://www.jenkins.io/doc/book/using/change-time-zone/ 阅读全文
posted @ 2022-01-20 19:12 船长博客 阅读(46) 评论(0) 推荐(0) 编辑
摘要: html文件可仅作为附件,也可以把html插入正文: #!/usr/bin/python # -*- coding: UTF-8 -*- import smtplib from email.mime.text import MIMEText from email.utils import forma 阅读全文
posted @ 2022-01-20 19:02 船长博客 阅读(666) 评论(0) 推荐(1) 编辑
摘要: top用时久,a56爆大奖在线娱乐推荐使用mpstat top -n1 | head -n2 Mem: 222328K used, 282096K free, 6216K shrd, 13760K buff, 27972K cached CPU: 18% usr 40% sys 0% nic 39% idle 0% 阅读全文
posted @ 2022-01-19 17:14 船长博客 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: docker exec -u 0 <container> <command> 例: sudo docker exec -it -u 0 ea269 /bin/bash 阅读全文
posted @ 2022-01-14 17:12 船长博客 阅读(673) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get update sudo apt-get install iproute2 //ip sudo apt-get install net-tools //ifocnfig sudo apt-get install ping //centos 使用 sudo apt-get in 阅读全文
posted @ 2022-01-12 20:41 船长博客 阅读(8071) 评论(0) 推荐(1) 编辑
摘要: 安装: pip install --upgrade robotframework-sshlibrary 参考: http://robotframework.org/SSHLibrary/SSHLibrary.html#Importing *** Settings *** Library SSHLib 阅读全文
posted @ 2022-01-06 20:35 船长博客 阅读(409) 评论(0) 推荐(0) 编辑
摘要: Telnet是内置库,可以直接导入使用,不需要单独安装。 *** Settings *** Library Telnet *** Test Cases *** Telnetlogin Telnet.Open Connection 10.1.1.1 prompt_is_regexp=yes promp 阅读全文
posted @ 2022-01-06 20:30 船长博客 阅读(955) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页
永远相信美好的事情即将发生!