摘要:
#!/usr/bin/python #-*- coding:utf-8 -*- import requests import re def get_email(url): """get all the email address from the url""" content = requests.get(url).text pattern = r'... 阅读全文
摘要:
#!/bin/bash src=/data/ # 需要同步的源路径 des=data # 目标服务器上 rsync --daemon 发布的名称,rsync --daemon这里就不做介绍了,网上搜一下,比较简单。 rsync_passwd_file=/etc/rsyncd.pas... 阅读全文
摘要:
一、配置inotify随机启动 二、inotify同步脚本 阅读全文
摘要:
temp.yaml env 阅读全文
摘要:
#!/usr/bin/python #coding:utf-8 """ """ import sys,os from contextlib import nested def MergeEnvFile(newfile,oldfile): with nested(open(newfile,'a'), open(oldfile, 'r')) as (new_file, old_file) ... 阅读全文
摘要:
1、普通主机密钥列表配置env.hosts = [ 'host1', 'host2' ] # 注意: 要使env.passwords生效, host格式必须是 user@ip:port ,端口号一定要显式写出来,即使是使用的默认22端口。 env.passwords = { 'host1': "host1pwd", 'host2': "host2... 阅读全文
摘要:
1、pip freeze > requirements.txt 将当前环境中的包的名称及版本导出到文本中 2、然后在另一个环境中 pip install -r requirements.txt 安装 阅读全文
摘要:
import sys import smtplib from email.mime.text import MIMEText class MessageAgent: def __init__(self): self.mail_host="partner.outlook.cn" self.mail_user="hello@qq.com" ... 阅读全文
摘要:
一、软件安装 源码及安装参考:https://github.com/Piplin/Piplin 代码安装目录:/home/piplin/www 配置文件:/home/piplin/www/.env //如果安装完成之后修改了.env里的配置信息,要记得执行 php artisan config:cache 使其立即生效 supervisord:/etc/supervisord... 阅读全文
摘要:
一、背景需求 1、开发同事 nodejs 开发项目,node index.js 开启9003服务端口的监听服务,现在需要外部通过https 访问该服务 2、搭建apache2服务 1)80端口http访问,配置/etc/apache2/sites-enabled/000-default.conf 2 阅读全文