我已经在 Unbuntu 10.04 上安装了 OpenLDAP。
我想我的配置LDAP,但我找不到slapd.conf中在/etc/ldap/
在这个目录下有一个ldap.conf的,但似乎并不相同。
如何配置我的 ldap ?
我已经在我的 Ubuntu 10.04 上构建/安装了 Python 2.7,我刚刚看到 SSL 没有激活。
我必须重建 Python 吗?
如何使用 SSL 支持重建它并更新我当前的安装?
我不希望并行进行新安装。
尝试使用 oauth2:
>>> import oauth2
Run Code Online (Sandbox Code Playgroud)
回溯(最近一次调用最后一次):
文件“”,第 1 行,在
文件“/usr/local/lib/python2.7/site-packages/oauth2/ init .py”中,第 32 行,在 import httplib2
文件“/usr”中/local/lib/python2.7/site-packages/httplib2/ INIT py”为,线801,在类HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError的: '模块'对象没有属性'HTTPSConnection'
文档告诉你
HTTPS 支持仅在使用 SSL 支持编译套接字模块时可用。
所以我想激活 SSL 支持
尝试安装 pyOpenSSL
$ python setup.py build
Run Code Online (Sandbox Code Playgroud)
给这个
/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
running build
running build_py
running build_ext
building 'OpenSSL.crypto' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC …
Run Code Online (Sandbox Code Playgroud) $ ps aux | grep httpd
1003 22806 0.0 0.3 17624 7684 ? S May25 0:00 /opt/web/apache/bin/httpd -k start
1003 4834 0.0 0.3 17624 7684 ? S May28 0:00 /opt/web/apache/bin/httpd -k start
1003 5299 0.0 0.3 17740 7804 ? S May28 0:00 /opt/web/apache/bin/httpd -k start
1003 5503 0.0 0.3 17624 7684 ? S May28 0:00 /opt/web/apache/bin/httpd -k start
1003 5875 0.0 0.3 17624 7684 ? S May28 0:00 /opt/web/apache/bin/httpd -k start
1003 5970 0.0 0.3 17624 7684 ? S May28 …
Run Code Online (Sandbox Code Playgroud) 我正在使用 automysqlbackup,这是创建的默认 cron 条目
#!/bin/sh
test -x /usr/sbin/automysqlbackup && /usr/sbin/automysqlbackup
Run Code Online (Sandbox Code Playgroud)
我的文件存储在这里
/var/cache/automysqlbackup
Run Code Online (Sandbox Code Playgroud)
我需要和我的用户一起阅读它们,但所有转储都归 root:root 和 600 所有
-rw------- 1 root root 945671 mars 12 06:49 my_2013-03-12.sql.gz
-rw------- 1 root root 951541 mars 13 06:32 my_2013-03-13.sql.gz
-rw------- 1 root root 956770 mars 14 06:31 my_2013-03-14.sql.gz
-rw------- 1 root root 961125 mars 15 06:53 my_2013-03-15.sql.gz
-rw------- 1 root root 969009 mars 17 06:38 my_2013-03-17.sql.gz
-rw------- 1 root root 969139 mars 18 06:38 my_2013-03-18.sql.gz
Run Code Online (Sandbox Code Playgroud)
如何配置 automysqlbackup 以使用不同的所有者和权限?
ubuntu ×2
apache-2.2 ×1
backup ×1
mysql ×1
openldap ×1
permissions ×1
python ×1
root ×1
ssl ×1
users ×1