Articles of centos

如何在CentOS 5.8(32bit)上升级到最新的PHP,MySQL和phpmyadmin?

我在互联网上search过,找不到在CentOS 5.8 32bit上用apache安装PHP,MySQL和phpmyadmin最新版本的可靠来源。 我已经尝试了几次,没有运气。 每次损坏我的服务器。 我厌倦了假设什么是正确的,搞砸了我的服务器/浪费时间。 我想我会来这里得到一个真正有效的合法答案,直接来自知道他们实际上在做什么的社区。 如果可以使用YUM进行自动将来更新,那也是很酷的。

是否有任何问题从RHEL迁移到CentOS?

我想从RHEL 6.3迁移到CentOS-6以节省授权费用。 我们将主要在这些盒子上运行Java / WebLogic 11g。 从RHEL 6.3迁移到CentOS-6时,是否有任何问题需要注意? 谢谢。

无法连接到CentOS 6.3上的Ruby on Rails开发服务器

我无法连接到我的Ruby on Rails开发服务器: 当我在不同的连接上input192.168.0.10:3000到网页浏览器时,只是超时。 我怀疑问题是我的防火墙configuration,但我试图打开一切,似乎并没有工作。 服务器在我的本地networking上,有一个静态的IP,并且configuration正确 – 我可以通过SSH进入,并可以连接到互联网进行更新。 它运行CentOS 6.3,并按照以下说明安装了rails: http : //itekblog.com/ruby-on-rails-on-centos-6-3-is-easy/ 服务器正在运行:我可以用wget localhost:3000下载“Welcome Aboard”页面 我认为它应该在所有接口上进行监听: [sandy@pops testproject4]$ rails server => Booting WEBrick => Rails 3.2.8 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2012-08-18 18:29:04] INFO WEBrick 1.3.1 [2012-08-18 18:29:04] INFO ruby 1.8.7 (2011-06-30) […]

由于Date :: Manip问题,无法运行logwatch

我试图在下面运行logwatch [root@machine cron.daily]# ./0logwatch ERROR: Date::Manip unable to determine TimeZone. Execute the following command in a shell prompt: perldoc Date::Manip The section titled TIMEZONES describes valid TimeZones and where they can be defined. 我的date如下 root@machine cron.daily]# date Thu Aug 23 06:25:21 GMT 2012 现在基于各种论坛的细节,我试图通过设置来解决这个问题 /etc/timezone to “+0800” 但它没有工作 我的/etc/localtime指向/usr/share/zoneinfo/GMT ,由puppetpipe理 我如何去解决这个问题? 我仍然希望所有的机器都在GMT时区。 编辑: 可悲的是, 这两个更改都不起作用: […]

读取keytab文件krb5.keytab时出错

我注意到了SLES 11.2和CentOS 6.3上的这些Kerberos keytab错误消息: sshd[31442]: pam_krb5[31442]: error reading keytab 'FILE: / etc/ krb5. keytab' /etc/krb5.keytab在我们的主机上不存在,而且根据我所知的keytab文件,我们不需要它。 根据这个kerberos keytab介绍 : keytab是一个包含Kerberos主体和encryption密钥(这些都是从Kerberos密码派生的)对的文件。 您可以使用此文件login到Kerberos而不提示input密码。 keytab文件最常见的用途是允许脚本在没有人为干预的情况下对Kerberos进行身份validation,或者将密码存储在纯文本文件中。 这听起来像我们不需要的东西,也许没有它的安全性更好。 我怎样才能防止这个错误popup在我们的系统日志? 这是我的krb5.conf如果有用的话: banjer@myhost:~> cat /etc/krb5.conf # This file managed by Puppet # [libdefaults] default_tkt_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC default_tgs_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC preferred_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC default_realm = FOO.EXAMPLE.COM dns_lookup_kdc = […]

服务器在Linux CentOS 6.3上使用NTPclosures1小时

所以我已经在我的Linux CentOS服务器上设置了NTP,但是我的服务器时间仍然是1小时。 目前它是3:53am EST ,在我的Linux机器上它显示“2:53 AM EST”这是NTP和使用ntpdate time.nist.gov和其他服务器试图同步我的服务器的时间,但所有这些仍然有我的服务器比EST时间晚了1个小时。 任何人都知道如何解决这个问题?

NTP本地查询总是超时

我有一个CentOS 6.4服务器,它没有任何iptable规则,它使用以下configuration作为服务运行NTP守护进程: driftfile /var/lib/ntp/drift server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server 3.pool.ntp.org restrict default ignore restrict 127.0.0.1 当我运行ntpq来查询对等体时,会收到以下响应: ntpq> peers localhost.localdomain: timed out, nothing received dig表明: localhost.localdomain. 86400 IN A 127.0.0.1 为什么不ntp查询工作?

权限被拒绝根改变max_user_watches,怎么解决这个问题?

作为CentOs 6.4服务器的根目录,我在应用程序中遇到这个错误: Fri May 16 01:45:23 2014 Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches 但是,当我尝试以root用户身份运行该命令时,我拒绝了权限。 # echo 100000 > /proc/sys/fs/inotify/max_user_watches -bash: /proc/sys/fs/inotify/max_user_watches: Permission denied 即使我编辑/etc/sysctl.conf,我也会得到权限的拒绝: # echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf # sysctl -p error: permission denied on key 'fs.inotify.max_user_watches 我该如何解决这个问题?

无法连接到PostgreSQL unix域套接字

我试图从PHP Web应用程序连接到PostgreSQL Unix域套接字。 相关系统组件: CentOS 7 x64(强制执行SELinux) postgresql93 9.3.5-2PGDG.rhel7 nginx 1.6.2-1.el7.ngx php-common 5.4.16-23.el7_0.3 php-fpm 5.4.16-23.el7_0.3 php-pdo 5.4.16-23.el7_0.3 php-pgsql 5.4.16-23.el7_0.3 PostgreSQL正在监听标准端口5432,我没有问题通过TCP / IP在127.0.0.1:5432,但是当我尝试连接到它的Unix域套接字,我有一个以下错误: Cannot connect to database: SQLSTATE[08006] [7] could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 文件/tmp/.s.PGSQL.5432存在,我可以连接使用psql : $ psql […]

在CentOS 7上与systemctl和Haproxy发生奇怪的交互

通过systemctl运行haproxy与手动运行haproxy不同 。 手动启动,一切正常。 从systemctl开始,haproxy无法find它所代理的服务,并用503来回答。 这是通过systemctl启动时的输出: > sudo systemctl status -l haproxy.service haproxy.service – HAProxy Load Balancer Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled) Active: active (running) since Wed 2014-12-24 08:08:49 EST; 4min 59s ago Main PID: 20307 (haproxy) CGroup: /system.slice/haproxy.service └─20307 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid Dec 24 08:08:49 localhost.localdomain systemd[1]: Starting HAProxy Load Balancer… Dec 24 08:08:49 […]