Articles of centos6

服务器pipe理员可以浏览基于主机的KVM虚拟化date吗?

在https://www.digitalocean.com/托pipe基于KVM虚拟化。 如果我购买他们的主机,并上传私人数据,服务器pipe理员可以浏览我所有的date?

改变一个IP而不中断连接到第二个?

我有一个CentOS 6盒子,在一个物理接口上有两个IP地址 – 一个是通过netconfig脚本分配给接口的IP,另一个是通过起搏器服务分配给同一接口的“虚拟”IP。 我想改变“物理”IP地址,但我不想中断与虚拟IP地址的任何连接。 这是可能的,如果是这样,怎么样? 总是在我想更改IP之前,我只是简单地修改netconfig脚本,然后运行service network restart ,但是我认为这会终止到虚拟IP的任何连接。

httpd在bash中作为第二个命令重新加载失败

我试图运行一个命令,执行一个动作,更新证书,然后重新加载Apache。 要做到这一点,我运行以下: sudo /home/ec2-user/letsencrypt/letsencrypt-auto –config /home/ec2-user/letsencrypt/cert.ini certonly –debug && service httpd reload 这给了我以下内容: Updating letsencrypt and virtual environment dependencies…… Requesting root privileges to run with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt –config /home/ec2-user/letsencrypt/secure_textinconfidence_com.ini certonly –debug Version: 1.1-20080819 Version: 1.1-20080819 IMPORTANT NOTES: – Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/secure.textinconfidence.com/fullchain.pem. Your cert will expire on 2016-05-03. To […]

安装Nagios时无法打开configuration文件

当试图设置nagios时,我遇到了一些错误。 Error: Cannot open config file '/usr/local/nagios/etc/hosts.cfg ;new file added ' for reading: No such file or directory Error processing object config files! One or more problems was encountered while processing the config files… Check your configuration file(s) to ensure that they contain valid directives and data definitions. If you are upgrading from a previous […]

Nginx wordpress无法在CentOS 6.8上传文件

当我上传一张照片到我的网站时,我不断收到这个错误。 无法创build目录wp-content / uploads / 2016/06 configuration是这样的。 对于/etc/nginx/conf.d/default.conf server { server_name vnfintech.com www.vnfintech.com; root /usr/share/nginx/html; index index.php; access_log /var/log/nginx/vnfintech.com.access.log; error_log /var/log/nginx/vnfintech.com.error.log debug; client_max_body_size 20M; set $cache_uri $request_uri; # POST requests and URLs with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } if ($query_string != "") […]

在rhel服务器中安装错误

我有一个没有互联网或rhel subscrription rhel机。 我加载了rhel 6 dvd并试图从该dvd安装一些软件包。 当我尝试安装gcc时,出现以下错误。 Error: Package: glibc-2.12-1.149.el6.i686 (rhel6-Server) Requires: glibc-common = 2.12-1.149.el6 Installed: glibc-common-2.12-1.192.el6.x86_64 (@rhel-6-server-rpms) glibc-common = 2.12-1.192.el6 Available: glibc-common-2.12-1.149.el6.x86_64 (rhel6-Server) glibc-common = 2.12-1.149.el6 这个错误是什么意思? 我的机器上安装了32位和64位的glibc [root@ip-10-0-0-34 rhel]# yum list installed | grep glibc-common glibc-common.x86_64 2.12-1.192.el6 @rhel-6-server-rpms

为什么我不能login到这个服务器?

我正在尝试login到一个centos 6.8服务器,我有ip地址和正确的密码。 它将私钥存储在我的known_hosts文件中,但后来我忘记了。 我的同事可以从他的计算机上login,他在发送给我的id_rsa.pub文件中有私钥。 当我存储它,我仍然无法login。我自从删除该文件,但我仍然无法login,我无法理解这个错误日志下面,请帮助。 danales-MacBook-Pro:~ danale$ ssh -vvv <ip> OpenSSH_7.3p1, LibreSSL 2.4.1 debug1: Reading configuration data /Users/danale/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * debug2: resolving "<ip>" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to <ip> [<ip>] port 22. debug1: Connection established. debug1: identity file /Users/danale/.ssh/id_rsa type […]

发送电子邮件对一些域名来说很慢

我的系统使用sendmail从php发送电子邮件。 我意识到有关堆栈交换关于从sendmail / php发送电子邮件的延迟有几十个问题。 我已经读了所有,但我仍然无法解决我的问题。 我有一个生产服务器和一个开发服务器。 生产位于数据中心,使用“智能主机”转发电子邮件,直接发送电子邮件被防火墙阻止。 发展在我们的办公室,并直接发送电子邮件。 他们也使用不同的DNS服务器。 除此之外,这些服务器与我所能做到的相似。 我的系统需要一次发送很多(大约一万个)电子邮件。 我的开发服务器能够在一小时之内发送所有邮件。 生产系统需要24小时以上。 电子邮件大小为2kb-5kb。 在我的生产服务器上: 我已经确定,从PHP到sendmail的交接速度很快。 Sendmail发送电子邮件到某些域缓慢。 大邮件服务(gmail,aol,yahoo)速度很快。 我试图发送1000封电子邮件给只有一个地址,他们都在几分钟内发送,所以我知道这个中继能够快速发送邮件。 我的问题是,我的地址列表中的大部分电子邮件地址是小的域名,其中大部分是缓慢的。 这导致我相信缓慢的步骤涉及DNS。 这里是我的maillog文件摘录({大括号中的值取代隐私)。 Mar 28 11:21:47 {servernamereplaced} sendmail[26242]: v2SILe8w026242: to={[email protected]}, ctladdr={[email protected]} (48/48), delay=00:00:07, xdelay=00:00:00, mailer=relay, pri=32561, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v2SILlIu026244 Message accepted for delivery) Mar 28 11:22:08 {servernamereplaced} sendmail[26247]: v2SILmT8026247: to={[email protected]}, ctladdr={[email protected]} (48/48), delay=00:00:20, xdelay=00:00:10, […]

CentOS6和PostgreSQL-YUM,(错误:无法检索资源库的元数据(repomd.xml):pgdg90。请validation它的path,然后重试)

我正在使用CentOS 6.我需要configuration我的YUM才能访问PostgreSQL存储库,但是出现错误。 我按照这个指南: http : //www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html 当我做: yum install postgresql 我得到这个错误: [root@andre yum.repos.d]# yum install postgresql Loaded plugins: fastestmirror, refresh-packagekit, rpm-warm-cache Loading mirror speeds from cached hostfile * base: ftp.di.fc.ul.pt * extras: ftp.di.fc.ul.pt * updates: ftp.di.fc.ul.pt http://yum.pgsqlrpms.org/9.0/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – "The requested URL returned error: 404" Trying other mirror. Error: Cannot retrieve […]

CentOS apache启动configuration文件安全错误

我在CentOS上设置NetDisco计算机,这需要在apache httpd.conf文件中添加一个include。 当我通过从根命令提示符运行“httpd”来启动apache时,进程启动。 当我尝试通过运行“service httpd start”来启动apache时,我得到以下输出: Starting httpd: httpd: Syntax error on line 1010 of /etc/httpd/conf/httpd.conf: Could not open configuration file /usr/local/netdisco/netdisco_apache.conf: Permission denied [FAILED] 该文件具有这些权限: -rw-r–r–. 1 root root 1798 Apr 22 18:46 netdisco_apache.conf 而httpd.conf有这些权限: -rw-r–r–. 1 root root 34520 Apr 22 17:06 httpd.conf 是什么赋予了EXACT相同权限的文件当然可以被apache服务访问?