Articles of centos6

httpd死了但pid文件存在| httpd死了,但sudsys被locking。 Centos 6

安装在VPS上的Centos 6 64bit干净安装,只是试图使用已安装的httpd安装任何types的软件包。 my case: [root@bucch ~]# service httpd status httpd is stopped [root@bucch ~]# service httpd start Starting httpd: [ OK ] [root@bucch ~]# service httpd status httpd dead but pid file exists [root@bucch ~]# rm -f /var/run/httpd/httpd.pid [root@bucch ~]# service httpd status httpd dead but subsys locked [root@bucch ~]# rm -f /var/lock/subsys/httpd [root@bucch […]

Saltstack rpm软件包安装失败

所以我得到这些错误,同时运行盐-G'os:centos'state.apply ———- ID: filebeat Function: pkg.installed Result: False Comment: An exception occurred in this state: Traceback (most recent call la st): File "/usr/lib/python2.6/site-packages/salt/state.py", line 1744, in call **cdata['kwargs']) File "/usr/lib/python2.6/site-packages/salt/loader.py", line 1702 , in wrapper return f(*args, **kwargs) File "/usr/lib/python2.6/site-packages/salt/states/pkg.py", line 1442, in installed **kwargs) File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", l ine 1111, in install rpm_info = __salt__['lowpkg.bin_pkg_info'](pkg_source) […]

Centos 6 vs Centos 7文件访问性能

我想找一些帮助来弄清楚什么可以解释为什么Centos 7在访问文件,然后是Centos 6比较慢。这大概有17%的差异。 这是一个简单的testing: [root@test-centos6 shm]# time for i in $(seq 0 50000); do stat file > /dev/null; done real 0m42.283s user 0m2.465s sys 0m4.434s [root@test-centos6 shm]# time for i in $(seq 0 50000); do stat file > /dev/null; done real 0m41.890s user 0m2.442s sys 0m4.341s [root@test-centos6 shm]# time for i in $(seq 0 50000); […]

为sshlogin强制密码

我有两个CentOS6和CentOS7的服务器。 他们都有SSH访问权限。 我的客户端电脑有Ubuntu 16.04。 对于CentOS6我可以用命令login ssh -i ~/.ssh/serv1 root@serv1 但命令 ssh root@serv1 提示密码。 对我来说没问题。 对于CentOS7我可以用命令login ssh -i ~/.ssh/serv2 root@serv2 但命令 ssh root@serv2 不要提示密码。 我也可以成功login。 当我从另外一台计算机上执行“ssh root @ serv2”时,ssh会提示密码,这是可以的。 问题是:为什么我可以不用密码login到serv2,也没有用ssh键命令 ssh -i ~/.ssh/serv2 root@serv2 ? 我找不到对它负责的选项,找不到这是CentOS7的标准行为。 告诉我是否需要额外的信息。

CentOS 6 Gnomelogin立即注销我

使用Samba Windows 2008 R2身份validation,在新安装的CentOS 6上出现一个奇怪的问题。 login成功了,甚至创build了主目录,但是我又被扔回了login界面。 消息日志包含以下错误: Aug 22 11:35:01 linuxdevX gdm-simple-greeter[2295]: WARNING: Failed to send buffer Aug 22 11:35:02 linuxdevX NetworkManager[1151]: <error> [1314002102.259224] [nm-manager.c:1312] user_proxy_init(): could not init user settings proxy: (3) Could not get owner of name 'org.freedesktop.NetworkManagerUserSettings': no such name Aug 22 11:35:02 linuxdevX NetworkManager[1151]: <error> [1314002102.604082] [nm-manager.c:1312] user_proxy_init(): could not init […]

如何为Glassfish服务器构buildSELinux规则

我在CentOS 6解决scheme上运行Glassfish 3.1,默认启用SELinux。 我已经在服务器上安装了Sun的JDK 1.6.0_29版本,并将Glassfish 3.1.1 /opt/glassfish-3.1.1压缩到/opt/glassfish-3.1.1 ,同时指向最新的Glassfish版本的/opt/glassfish链接。 我还创build了一个名为glassfish的系统用户,其主目录为/home/glassfish 。 当启用SELinux运行时,我得到各种错误。 例如,我无法创build域。 我有点像SELinux的概念,并希望能够启用SELinux。 我对Glassfish服务器有以下要求: 聆听端口8080和8081 其他端口7676:JMS 8686:JMX监视,4848:pipe理控制台 通过mod_jk和端口8009从apache转发到Glassfish 启动OpenMQ作为一个单独的进程,它监听7676,它是JMX监控端口7776 能够读写指定区域的文件(与主目录不同) 能够使用/ tmp /临时文件 我知道在允许模式下运行audit2allow工具,但是我很难理解这个工具生成的规则,并且认为第一次手动设置这些规则会比单纯的例子更好地理解SELinux规则到目前为止我已经看到了。 具有SELinux经验的人能否帮助我形成这些SELinux规则,并说明规则的每个部分?

错误:连接到监视器时退出内部错误进程:支持的机器是:

我将Ubuntu Server来宾机从Ubuntu服务器主机移动到CentOS 6主机。 我的意图是保持客人作为Ubuntu服务器,只是改变主机的操作系统。 我把逻辑卷和virsh XML定义移到了新的主机上。 当我第一次尝试使用virsh define ldap ,我得到了错误: error: Failed to define domain from ldap.xml error: Cannot find QEMU binary /usr/bin/kvm: No such file or directory 所以我改变了 <emulator>/usr/bin/kvm</emulator> 至 <emulator>/usr/libexec/qemu-kvm</emulator> 在XML文件中,我可以定义机器。 我猜这就是CentOS的等价path。 当我尝试启动虚拟机虽然,我得到这个错误: # virsh start ldap error: Failed to start domain ldap error: internal error process exited while connecting to monitor: Supported […]

net-snmp的centos 6 oid信息

我试图设置nagios核心3来监视使用net-snmp的Linux服务器,无法findsnmp正确的oid。 mibDepot.com似乎是一个很好的网站,但我尝试了大多数,不工作…任何build议在哪里看? 谢谢!

psql要求input密码,尽pipe从本地主机configuration信任authentication

在/var/lib/pgsql/9.1/data/pg_hba.conf ,我有以下几点: # TYPE DATABASE USER ADDRESS METHOD host all all 127.0.0.1/32 trust 但是当我执行 su -c "psql -d postgres" – postgres 它要求我input密码。 我的期望是,用户不应该被提示input密码。

系统日志中的rpc.idmapd错误

我越来越厌倦了我的系统日志中的一些错误消息 – 它显示: Jul 3 15:16:38 web rpc.idmapd [14535]:nss_getpwnam:name'nobody'不映射到域'mydomain.com' 我有检查,我的主机名是正确的mydomain.com,我甚至在/ etc /主机名添加了一个有效的条目。 我已经编辑了我的/etc/idmapd.conf来反映这个域名,这个错误消息每10分钟logging一次,并且变得令人沮丧,我不知道为什么或者是什么原因造成的,nfs服务器工作正常,正确的input和现在消息在日志中。 我正在使用centos6 – Ofcoure,我已经用我的真实域取代mydomain.com