Articles of centos

SSSD安装目录为空

当我尝试安装SSSD使用yum install sssd安装SSSDterminal写入安装完成罚款,但是当我尝试service sssd start它写 sssd:无法识别的服务 然后当我试图启动它使用/etc/init.d/sssd start我得到一个错误 开始sssd:[失败] 另外我可以看到/etc/sssd目录是空的(服务无法启动, 因为它错过了sssd.conf文件 ,它必须位于这个空目录中)。

Apache上的低stream量WordPress网站不断崩溃的服务器

最近,我把我的低中等stream量(繁忙的一天1000个UAUs,在忙碌的一天5000个网页浏览量)从4个四核处理器(可能超卖)和3GB内存上运行到Apache和cPanel的Centos 6 64位VPS (Xen的)。 我们从一开始就遇到了问题。 服务器不断崩溃。 看来PHP不断扩展,直到它消耗所有的内存和崩溃的服务器。 有些人build议我放弃Apache / cPanel / PHP / mySQL并使用nginX / Varnish / PHP-FPM / SQLite。 但是,这对我来说是不可能的,因为我不太懂技术,需要像cPanel这样简单的GUI来pipe理普通的pipe理任务(不能聘请系统pipe理员或获得完全托pipe的托pipe)。 我遇到过几篇文章,讨论Apache for WordPress的优化。 但是,所有这些都会导致相当年份的文章,例如从2009年1月份开始的大约4年的文章 – http://thethemefoundry.com/blog/optimize-apache-wordpress/ 这篇文章是相当详细的,似乎有帮助,但我偶然发现第一步。 我的httpd.conf只有2个loadmodule命令 LoadModule fastinclude_module modules/mod_fastinclude.so LoadModule bwlimited_module modules/mod_bwlimited.so 所以我就在那里彻底崩溃。 此外,我的httpd.conf说 随后重新生成configuration文件时,对Apacheconfiguration文件的直接修改可能会丢失。 要保留修改,必须通过运行以下命令将所有修改检入configuration系统:/ usr / local / cpanel / bin / apache_conf_distiller 我很难find在哪里更改WHM模块。 请有人可以帮助我更新如何优化Apache的WordPress指南? 非常感谢! PS WordPress安装也安装了WP Super Cache。 […]

在重新启动时停止Centos 6.3加载“文本模式设置实用程序”

我刚刚傀儡虚拟机,并从头开始(基于Centos 6.3最小)。 这个安装过程可以做很多事情,但是一个恼人的副作用是,当VM重新启动时,会自动打开一个名为: Text Mode Setup Utility 1.19.9 (c) 1999-200 Red Hat, Inc. 用“validationconfiguration”,“防火墙configuration”,“键盘configuration”,“networkingconfiguration”选项说“select工具”。 我不认为它是有用的,因为虚拟机已经configuration好了,我们需要使用这个虚拟机,但是很烦人,它不会重启到正常的login提示符。 任何人都可以告诉我如何停止此文本模式安装实用程序运行? 这是一个缺less的configuration选项或我安装的虚假软件包? 这是chkconfig的输出。 它看起来像firstboot正在运行。 我不知道这是什么,但现在我已经阅读了这个手册页 ,所以我会去触摸/etc/sysconfig/firstboot ,这应该阻止它发生? NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off cgconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off cgred […]

从源代码到RPM

我很好奇从源代码安装服务和工具之间使用RPM和存储库之间的主要区别/优点/缺点。 根据我的理解,使用repo / rpm可让您轻松安装和卸载所有文件,但是在安装过程中无法指定高级命令/标记或特定版本。 所以问题是。 你可以下载源文件,configuration它,然后将其打包到一个RPM,以便以后轻松卸载和升级的能力?

CentOS:Yum安装错误

每次尝试在四台不同的服务器上更新(CentOS 6)时,我都会遇到这个错误。 它只发生在这个包里。 在研究了这个问题后,我一直没有find任何有用的信息。 人们对此有非常类似的问题,但不是这个问题。 任何人都可以告诉我如何解决这个问题? [user@machine ~]$ sudo yum update Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirror.thelinuxfix.com * extras: mirrors.gigenet.com * rpmforge: thammuz.tchpc.tcd.ie * updates: mirror.clarkson.edu Setting up Update Process Resolving Dependencies –> Running transaction check —> Package srvadmin-omcommon.x86_64 0:7.2.0-4.450.1.el6 will be updated —> Package srvadmin-omcommon.x86_64 […]

无法启动kdump

我的系统总是崩溃。 所以我决定启用kdump来查看问题,因为我无法看到日志文件上可能的错误。 我按照步骤在这里设置了一个站点的kdump 。 我的服务器在CentOS 5.8和16GB RAM上运行。 以下是我configurationkdump的步骤: 1. Install kexec-tools, `yum install kexec-tools` and follow the installation steps 2. Edit the /boot/grub/grub.conf to configure the kdump memory usage 3. Edit the /etc/kdump.cof to configure the target type to /var/crash/ and core_collector 4. Enable kdump through `chkconfig kdump on`. 5. Reboot the server 当我运行service kdump […]

iptables将端口80/443redirect到8080/8181

在Centos 6.4上,我想阻塞除了22,80和443之外的所有传入端口。80(外部)应该被redirect8080(内部)。 443(外部)应该被redirect到8181(内部)。 我使用了以下命令: service iptables stop iptables -A INPUT -i eth0 -p tcp –dport 80 -j ACCEPT iptables -A INPUT -i eth0 -p tcp –dport 443 -j ACCEPT iptables -A INPUT -i eth0 -p tcp –dport 22 -j ACCEPT iptables -A PREROUTING -t nat -i eth0 -p tcp –dport 80 -j REDIRECT –to-port 8080 […]

木偶用fqdn创build证书

客户端上的hostname是dns01.srv.acentauri.net.uk ,但是当我运行 puppet agent -t Info: Creating a new SSL key for dns01 Info: Caching certificate for ca Info: Caching certificate_request for dns01 Exiting; no certificate found and waitforcert is disabled 它为主机dns01创build证书, dns01我使用木偶大师这个域的srv.acentauri.net.uk 任何想法为什么puppet不创buildFQDN的SSL密钥?

SendMail不能在CentOs 6.4中工作

我正在尝试从CentOS 6.4发送电子邮件,但不起作用。 我对服务器的知识是相当有限的,所以我希望有人能帮助我。 这是我做的: 首先,我尝试使用“邮件”命令发送电子邮件,但它不在操作系统中,所以我安装了它。 # yum install mailx 之后,我尝试使用“邮件”命令发送电子邮件,但没有发送任何内容。 我在网上查了一下,发现我需要像sendmail这样的电子邮件服务器,所以我安装了它。 # yum install sendmail sendmail-cf sendmail-doc sendmail-devel 之后,我configuration了一些教程。 首先,sendmail.mc文件。 # vi /etc/mail/sendmail.mc 注释下一行: BEFORE # DAEMON_OPTIONS('Port=smtp, Name=MTA') dnl AFTER # dnl DAEMON_OPTIONS('Port=smtp, Name=MTA') dnl 检查下一行是否正确: # FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl # … # FEATURE(use_cw_file)dnl # … # FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl 更新sendmail.cf # […]

自动挂载encryption文件系统(使用随机密钥),位于CentOS 6下的常规文件中。*

任务:在CentOS 6.x系统中,使用一次性(随机)密钥,自动设置并挂载自动encryption的文件系统,驻留在常规文件中。 / etc / crypttab在CentOS 6中。*不允许使用纯文件作为块设备自动挂载和映射。 那么,/ etc / crypttab就这样行 cfs /var/file-with-encrypted-filesystem some-password-source 在CentOS中被忽略。 以下命令序列可以用来在CentOS中执行任务: losetup /dev/loop0 /var/tmpfile dd if=/dev/urandom of=/dev/shm/tmppass bs=512 count=1 cryptsetup luksFormat /dev/loop0 –use-urandom –batch-mode –key-file /dev/shm/tmppass cryptsetup luksOpen /dev/loop0 ctmp –batch-mode –key-file /dev/shm/tmppass mkfs.ext2 /dev/mapper/ctmp mount -t ext2 /dev/mapper/ctmp /mountpoint shred -n 1 /dev/shm/tmppass rm -f /dev/shm/tmppass 假设文件保存文件系统是/ var / […]