感谢我女儿 Cindy 为本站提供的“涂鸦”缩略图~

DevOps-Ansible自动化运维

Coding Alan 5个月前 (10-15) 154次浏览 0个评论

DevOps-Ansible自动化运维


MySQL, MongoDB, Redis 安装

/etc/mysql/my.cnf

日志配置

settings.py

调用

存活探测

ICMP(ping, traceroute),TCP

Python 代码实现

小技巧:

使用多个 settings.py,如本地和线上使用不同 配置文件可在运行时执行 python manage.py runserver  –settings=mydevops.settings的形式(修 settings为对应的文件)

pexpect, paramiko

 

常见问题

ubuntu warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused

Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found

No module named django.core.management

mysql.service: Control process exited, code=exited status=1
Failed to start MySQL Community Server.
mysql.service: Unit entered failed state.
mysql.service: Failed with result ‘exit-code’.
mysql.service: Service hold-off time over, scheduling restart
Stopped MySQL Community Server.
mysql.service: Start request repeated too quickly.
Failed to start MySQL Community Server.

 

喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址