Articles of centos

SELinux基于CentOS7的LXC?

有没有办法使用proxmox 4.2在基于LXC的容器上启用SELinux?

连接被重置

我最近在我的客户端Web服务器上设置了一个子域名。 这是虚拟主机设置: Listen *:80 #primary domain <VirtualHost *:80> # rails public folder DocumentRoot /u1/thisdomain.com/public ServerName thisdomain.com RailsEnv production </VirtualHost> #my subdomain <VirtualHost *> ServerName dev.thisdomain.com DocumentRoot /u1/dev.thisdomain.com/public </VirtualHost> 在进行configurationtesting时,我没有得到任何apacheconfiguration错误。 我优雅地重新启动Apache。 我在子域文档根中投入了一个基本的index.html。 现在,当我尝试访问子域时,我得到: 在Chrome中: The webpage is not available. Error 101 (net::ERR_CONNECTION_RESET): Unknown error. 在Firefox中: The connection was reset The connection to the server was reset […]

更改MySQL的启动参数

我需要从MySQL启动参数中删除skip-networking 我在VPS上的CentOS上在Linux上运行MySQL 有人可以告诉新手如何做到这一点? 我想要启动和停止mySQL服务器,我必须做这样的事情 /etc/init.d/mysqld停止 /etc/init.d/mysqld start # ps -ef|grep 'mysql' root 11331 20220 0 10:53 pts/0 00:00:00 grep mysql root 32452 1 0 Apr02 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe –skip-grant-tables –skip-networking mysql 32504 32452 0 Apr02 ? 00:00:18 /usr/libexec/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –socket=/var/lib/mysql/mysql.sock –skip-grant-tables –skip-networking

升级CentOS 5.2到5.3 – 但不是5.4

目前运行CentOS 5.2的服务器。 开发者告诉我,他们希望将机器升级到CentOS 5.3,但不是所有的CentOS 5.4,因为他们还没有testing过5.4。 我敢肯定,一个百胜升级会让我在5.4,作为一个百胜检查更新显示各种5.4包。 那么我该如何提高到5.3?

硬盘问题“只读”

我有一个问题,当我几个小时后挂载我的分区时,它变成只读。 目前我运行: fuser -m -k /dev/sdb1 umount /dev/sdb1 fsck -y /dev/sdb1 mount /dev/sdb1 这使我可以重新读取/写入它,但这是一个重复发生的问题。 我的问题是我怎么能解决这个问题。 它看起来像是硬件还是软件问题? 这是目前在一个CentOS的64位盒。 当我运行dmesg我看到这个: EXT3-fs error (device sdb1): ext3_lookup: unlinked inode 36127046 in dir #36126721 Aborting journal on device sdb1. __journal_remove_journal_head: freeing b_committed_data __journal_remove_journal_head: freeing b_committed_data ext3_abort called. EXT3-fs error (device sdb1): ext3_journal_start_sb: Detected aborted journal Remounting filesystem read-only “smartctl -a […]

如何在centos或linux中search

我发现有时我可以find使用定位文件,但有时它找不到。 它使用哪个目录find或查找文件 假设我想find具有单词拒绝主机的文件或目录。 什么是最好的方式来find

从基本authentication中排除为根目录设置的nagios目录

我有Apache的根目录的基本身份validation。 我是这样设置的。 /etc/httpd/conf.d/xxxx.conf <Location /> AuthType Basic AuthUserFile xxxxxxxx AuthName "Restricted Area" Require valid-user </Location> 由于此设置是以root身份进行设置的,因此会覆盖Nagios渲染Nagios无法运行的基本身份validation。 我试图通过做排除Nagios目录 <Location /nagios> Allow from all Satisfy any </Location> 但是,由于需要对Nagios设置进行主持,所以一起禁用了身份validation。 排除Nagios子目录的正确方法是什么?

我的VirtualHosts重叠,我的NameVirtualHost没有VirtualHosts

我认为这个问题的标题非常多说这个问题。 当我重新启动httpd时,出现这两个错误: [Wed Jun 22 13:39:23 2011] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Wed Jun 22 13:39:23 2011] [warn] NameVirtualHost *:80 has no VirtualHosts 我包括一个文件,这是唯一的一行: NameVirtualHost *:80 而且这两个VirtualHosts几乎都是这样的: <VirtualHost *:80> ServerAdmin webmaster@<other-name>.com DocumentRoot /var/www ServerName www.<name>.com ServerAlias <name>.com *.<name>.com <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www> Options Indexes […]

Proftpd CentOS用户只能用/ bin / bash shelllogin

我创build了一个用户并分配了一个密码和组(新组)。 问题是这个用户只能login到FTP(proftpd),如果他有shell = /bin/bash 如果我将shell设置为/bin/false那么Proftpd不会让他进入,并为530login错误的响应提供服务。 我希望用户能够login到FTP,但没有其他访问权限,所以不能通过SSHlogin。 /etc/proftpd.conf都是默认的,它的版本是1.3.3e ,而且是CentOS 6。

Apache ErrorDocument指令不起作用

我无法获得一个自定义的错误文档来处理400个错误的请求。 这是一个CentOS LAMP服务器。 ErrorDocument 400 /badrdoc.html 我已经尝试使用上面的: Apache http.conf Apache httpd-vhosts.conf(在每个虚拟主机中) .htaccess在网站的根htdocs中 他们都没有工作。 Apache正在服务其默认的400错误请求页面。 任何人都可以解释这一点吗? 编辑:忘了提及,我已经重新启动Apache后的变化。