-
10 年前
Windows 局域网访问Linux samba 共享慢的原因和解决办法
访问samba慢
问题表现 Windows 下访问Linux共享地址第一次打开时特别1-2分钟左右 连接成功后打开很快 原因 Linux主机名和/etc/hosts配置不一样 #hostname xxx-xxx-xxx #cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4…
-
10 年前
Python requests 模块快速上手
Shell/Python requests
参考文档 模块安装 pip install request 快速上手,首先要 import requests 发送无参数的get请求 s_ipv4_api = 'http://myops.imdst.com/api/public_ipv4' r = requests.get(s_ipv4_api) print r.text 发送带参数的get请求 test_url = "http://…
-
10 年前
nginx 泛域名解析实现二级域名多域名
运维技术 nginx泛域名
说明 网站的目录结构为 /data/www/imdst.com ├── aa ├── bb └── cc /data/www/为nginx的安装目录下默认的存放源代码的路径。 aa为a站源代码路径 bb为b站源代码路径 cc为c站源代码路径 把相应程序放入上面的路径通过 http://aa…
Linux运维笔记|自动化运维攻城狮

