以下脚本几乎完美适合我的备份需求: http : //pastie.org/3368661 但是,它只允许您备份到服务器或远程FTP。 我想添加一个选项来备份到Amazon S3(这不是一个标准的FTP)。 在323行是需要开始改变的地方。 我还想要求在S3上删除旧备份,但是现在亚马逊似乎通过他们的控制台提供了这个function,所以这里不需要这个function。 如果有人不能在这个脚本中find这样的方法,第二个select是备份到一个服务器文件夹,然后使用一个开源项目,如s3sync.rb,但这并不理想。 这是运行Centos 5和Plesk 10的MediaTemple DV服务器。 find更多信息: http : //wiki.mediatemple.net/w/( dv)_4.0: Setup_s3fs_to_easily_use_Amazon_S3
我有一个通过PBIS打开(新的LikeWise打开)对Active Directory进行authentication的Centos 5.7框,它运作良好。 现在,我试图让服务器自动挂载用户的AD主目录,位于//ad.server.dom/shares/home directories (是的,这是一个空间的path,我没有设置) 。 每个用户都有一个与用户名相同的目录。 我试图让pam_mount工作,但它在RedHat和朋友们有一系列的问题,我似乎无法得到这个工作。 该目录确实需要自动挂载,以便服务器执行其angular色。 我在automount上的阅读似乎表明,无法通过authentication来完成它,尽pipe我很高兴被certificate是错误的。 我已经看了这个资源 ,但它需要版本RedHat(因此CentOS)6或更高,比我更新的软件包。 我可以手动(以root身份)使用该命令挂载AD目录 mount.cifs "//ad.server.dom/Shares/home directories/testuser" /home/local/AD/testuser/nfs_mount/ -o username=testuser 当我以testuser身份login时,可以看到nfs_share目录中的所有示例文件。 任何提示朝着正确的方向将不胜感激。 这将在大学的服务器上,所以它需要相当稳定,并会导致更多的Linux采用。
我有一个CENT OS 5.5 64位邮件服务器。我希望我的主要postfix mta中继邮件发送或接收到多个postfix实例,其他postfix实例将执行邮件发送和接收工作,即我想要使用多个mta单个mta,因为多个实例可以自由地将每个Postfix实例调整到一个单独的任务,并将实例组合到完整的系统中。 。 谁能帮我这个。
我的意思是真正的新手 – Linux在这里..请帮助我通过iptablesconfiguration我的openvpn。 我的主要目标是像isp一样打开端口来定期浏览(80,443),电子邮件(110,25)等,但我想阻止P2Pstream量。 所以我只需要打开几个端口。 这是我的iptablesconfiguration # Flush all current rules from iptables # iptables -F iptables -t nat -F iptables -t mangle -F # # Allow SSH connections on tcp port 22 (or whatever port you want to use) # iptables -A INPUT -p tcp –dport 22 -j ACCEPT # # Set default policies […]
我有一个远程数据中心托pipe的CentOS 5.5服务器。 我通常使用ssh命令从红帽企业Linux 5服务器访问此服务器。 现在我的组织已经实现了代理服务器,这不允许我连接到VPS服务器。 我使用root@<ip address>:-命令看到以下错误root@<ip address>:- : ssh: connect to host <ip address> PORT 22: connection refused. 有人可以帮我解决这个问题吗?
我有一个与Centos 5.8的VPS 在phpinfo中显示:'./configure''–disable-fileinfo' '–disable-pdo' '–enable-bcmath''–enable-calendar''–enable-ftp''–enable-libxml '–enable-magic-quotes''–enable-sockets''–prefix = / usr / local''–with-apxs2 = / usr / local / apache / bin / apxs'–with- curl = / opt / curlssl /''–with-imap = / opt / php_with_imap_client /''–with-imap-ssl = / usr''–with-kerberos''–with-libdir = lib64'' –with-libxml-dir = / opt / xml2 /''–with-mysql = / usr''–with-mysql-sock = / var / lib […]
在客户端上遇到一些NFS安装问题时,它会拒绝连接 [root@host9 ~]# mount 192.168.0.17:/home/export /mnt/export mount: mount to NFS server '192.168.0.17' failed: timed out (retrying). mount: mount to NFS server '192.168.0.17' failed: timed out (retrying). mount: mount to NFS server '192.168.0.17' failed: timed out (retrying). mount: mount to NFS server '192.168.0.17' failed: timed out (retrying). 以下是我正在使用的设置: [root@host17 /home/export]# cat /etc/hosts.allow # # hosts.allow This […]
我似乎无法在我的Centos 5安装中findrtcwake命令。 search谷歌并没有真正发现任何结果,但我认为它应该是util-linux包的一部分,似乎并不是。 而且,运行: yum provides *bin/rtcwake 不返回任何匹配。
我已经为postfix安装了cluebringer-2.0.7,并在postfix的main.cf文件中启用了下面的行。 但我看不到任何政策的工作 smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_policy_service inet:127.0.0.1:10031 smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031 进一步检查我启用日志在policyd和它唯一显示下面的日志,并没有日志填充时,我发送新的电子邮件.. [2012/06 / 12-21:18:50 – 13949] [核心]通知:stream程背景[2012/06 / 12-21:18:50 – 13949] [CBPOLICYD]注意:Policyd v2 / Cluebringer – v2.0.7 [2012/06 / 12-21:18:50 – 13949] [CBPOLICYD]注意:初始化系统模块。 [2012/06 / 12-21:18:50 – 13949] [CBPOLICYD]注意:系统模块初始化。 [2012/06 / 12-21:18:50 – 13949] [CBPOLICYD]注意:模块加载开始… [2012/06 / 12-21:18:50 – 13949] [CORE] NOTICE:=> […]
我有一个CentOS 5.5框,它预装了Python 2.4。 我想要2.6,所以用yum从EPEL库中获取。 我也用yum来安装psycopg2软件包,但是它为Python 2.4安装了它。 我试图复制/usr/lib/python2.4/site-packages/psycopg2/到/usr/lib/python2.6/site-packages/ ,当我运行我的脚本,它的工作…但它给了我一个警告说 /usr/lib/python2.6/site-packages/psycopg2/__init__.py:69: RuntimeWarning: Python C API version mismatch for module _psycopg: This Python has API version 1013, module _psycopg has version 1012. 所以看起来这里有一些版本问题,我想知道解决问题的最好方法是什么。 我应该忽略这个警告吗? 有没有办法使用yum为Python 2.6安装psycopg2? 我应该使用python26 setup.py install吗? 我知道从源代码安装CentOS通常是一个不可以 ,所以我想这是最后的手段,除非它是唯一的select。 我只是不想搞乱yum 。