在python(+django)、ruby(+ror)和php上为开发人员提供扩展的包。

ahc的Python项目详细描述


关于
,用于控制apache/nginx虚拟主机的包,mysql/ftp
,用户,绑定区域,apache客户端证书在
developer/p生产网络主机。Tested on
Ubuntu/Debian Linux.
Published under GNU GPL v.2.
--------------------------------------------------------------

##############################################################

--------------------------------------------------------------
安装:apache主机控制:apt get update&;apt get upgrade-y
apt get install-y python pip python-mysqldb python flup git core使python pycurl
cd/usr/src/&;git克隆https://github.com/gotlium/ahc.git
cd ahc/&;pip install-r requirements.txt&;make install

, you can install system packages and firewall:
# ahc -m install -s lamp
# ahc -m install -s firewall
--------------------------------------------------------------

##############################################################

---------------------------------————————————————————————————————————————————————————————————————————————————————————————————————ache-t php-a example.com
-----------------------------

-----------------------------
nginx主机:
-----------------------------
\ahc-m install-s nginx-u ssl
\ahc-m tes t-s nginx
-s ftp
ahc-m test-s ftp
-——
ahc-m install-s mysql
ahc-m test-s mysql
ahc-m mysql-a example.com-u user-p password
——-----------------------------
ahc-m install-s bind
ahc-m test-s bind
ahc-m bind-a example.com-i 127.0.0.1
----------
-
-
-
-
新台币:
---------------------------------
ahc-m test-s git
ahc-m git-a example.com
ahc-m git-d example.com
--
git-jail:
---------------------------
ahc-m test-s git-jail
ahc-m git-jail-a mail@example.com-p'键入关键字字符串注释'
ahc-m git-jail-d mail@example.com
ahc-m git-jail-l
ahc-m git-jail-i example.com-e templates-u mail@exsample.com
ahc-m git_jail-i example.com-f模板-u mail@example.com
项目保护
项目保护
项目保护
项目保护-ahc-m测试-s crypt
ahc-m crypt-a mount
ahc-m crypt-a umount
---————————————————————————————————————————————————————————————————————————————————————————————————--
Firewall:
--------------------------------------------------------------
# ahc -m install -s firewall
# iptables -L -n
or
# cat /etc/init.d/rc.fw
--------------------------------------------------------------

##############################################################

-------------------------------------------
示例
-----------------------------------

-----------------------------
-m apache-t php-d主机名
--
ahc-m nginx-t php-a主机名
ahc-m nginx-t php-d主机名
-——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————--——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————-------------------------------------
bind9
----------------------------------
ahc-m bind-a hostname-i ip address
ahc-m bind-d hostname
--
备份
------
ahc-m test-s apache
ahc-m test-s nginx
ahc-m test-s ftp
ahc-m test-s mysql
ahc-m test-s mysql,ahc-m test-s bind
ahc-m test-s crypt
ahc-m test-s crypt-s crypt
ahc-m test-s crypt-s crypt
ahc-m test-s git-s git-s git-s git-s git-s git-s git-s git-s git-s git-s git-s git-s git
AHC-M测试-S全部
——/>----------------------------------------------------
证书
---------------------------------
ahc-mcerts-i example.com-电子邮件地址
--————————————————————————————————————————————————————————————————————————->-
ahc-m crypt-a encrypt
ahc-m crypt-a mount
ahc-m crypt-a ummount
ahc-m crypt-a解密

ahc-m crypt-a e
ahc-m crypt-a m crypt-a m m m crypt-a m m m m m crypt-a m m m m m crypt-a a a a a a a a a a a a a a a a a a m crypt-m crypt-a m crypt-a m m m crypt-a m crypt-a a a m m m m m c-a m crypt-地下室-——

————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————服务安装失速-s bind
ahc-m install-s mysql
ahc-m install-s防火墙
ahc-m install-s nginx代理
ahc-m install-s certs-i example.com.com
ahc-m install-s lighttpd-s lighttpd
ahc-m install-s sendmail
ahc-m install-s sendmail
ahc-m install-s install-s install-s mail
ahc-m install-s mail安装-s外壳tall-s jira
ahc-m install-s confluence
ahc-m install-s web
ahc-m install-s vpn
ahc-m install-s dropbox
r——帮助-帮助部分

bind flags:
-a=添加区域
-d=删除区域
-i=指定区域的IP地址



certs flags:
-a=添加用户
-d=删除用户
-l=用户列表


-a=添加[数据库]或[主机]stname]
-d=删除数据库
-u=用户名(可选)
-p=密码(可选)



ftp标志:
-a=为主机名添加ftp帐户
-d=删除ftp帐户(在删除主机名时仍在工作)
-u=用户名(可选)
-p=密码(op可选)
-f=手动指定的文件夹(可选)


注意:
默认"用户名"和"密码"等于主机名


-a-添加用户
-p-ssh公钥
-d-删除用户
-l-用户列表
-i-项目名称(域名)
-e-添加项目中目录的访问权限
-u-电子邮件地址
-f-删除目录的访问权限


-t=类型[php、python、django、ruby、ror]
-a=添加主机
-d=删除主机
-e=启用主机
-f=disABLE HOST
-o=静态优化(可选)
-x=启用主机保护(可选)
-l=列出可用网站
-w=wsgi python或django配置(nginx/uwsgi)
-b=basic auth。params=user:password
-v=virtualenv(可用于python&django)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
HTTP标头的java InputStream未终止   java测试SpringWebListener   具有定义的替换编号Java的regex ReplaceAll   在java中使用contains()方法   java在选择查询中使用JoinColumn字段   具有用户的java Start-stop demon不是以给定用户启动   java glBufferData生成GL\u无效\u操作   java中循环代码的循环   Java位无符号移位(>>>>)会产生奇怪的结果   java HQL使用点分隔符从select获取结果   条纹、弹簧、玩耍(或?):使用哪种高性能Java框架?   广播接收机中的java停止服务   java回收器视图占据整个屏幕。不在上面显示我的UI元素   java使MySQL查询更快   java MappedByteBuffer查询   java递归算法问题