全新安装Ubuntu 12.04 LTS,安装libvert / KVM。 我有两台虚拟机,需要与主机位于同一个局域网中。 主机有两个物理接口eth0和eth1。 eth1没有被使用。 我希望eth0有一个静态分配的IP,并作为我的虚拟机的桥梁。 在设置网桥之前,我的/ etc / network / interfaces如下所示: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.5.5 netmask 255.255.255.0 gateway 10.0.5.254 dns-nameservers 10.0.5.1 一切工作如预期在这个configuration下。 但是,当我应用下面的标题configuration时: # The loopback network interface auto lo iface […]
从今天上午以来,我无法访问我的合stream。 它在Ubuntu 12.04服务器上。 错误本身就是这样 Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /xxx/xx/xxxxx. Reason: Error reading from remote server 我使用一个与反向代理的Apache 我的apache2错误日志显示这个: (70007)The timeout specified has expired: proxy: error reading status line from remote server My apache config is this : <VirtualHost […]
我有一个Ubuntu 12.04设置与/ 48 IPv6路由到它。 根据主机文档,这是一个专家唯一的选项, 描述如下 : 对于这些客户,我们将整个/ 48块通过链路本地地址(fe80 :: / 64)。 这是标准的做法(RFC 3177,RFC 5375)。 我有一个/ 48子网的其他networking服务器,其中添加新地址就像添加到/ etc / network / interfaces 我被告知我的/ 48被路由到fe80 :: 2。 有人能解释从这里做什么?
在我的Ubuntu 12.04.04 LTS服务器上安装pure-ftpd时,出现了一个非常奇怪的错误。 我正在用sudo用户运行这个命令。 sudo apt-get install pure-ftpd 我得到这个错误 Processing triggers for man-db … Processing triggers for ureadahead … Setting up pure-ftpd (1.0.35-1) … Starting ftp server: File/Basename.pm did not return a true value at /usr/sbin/pure-ftpd-wrapper line 23. BEGIN failed–compilation aborted at /usr/sbin/pure-ftpd-wrapper line 23. invoke-rc.d: initscript pure-ftpd, action "start" failed. dpkg: error processing pure-ftpd […]
似乎有相当多的FTPlogin通过vsftpd的post,但没有为我工作。 我知道,FTP不是很安全,但我有一个上传页面,使用FTP上传内容到服务器。 这个内容不是在任何地方执行,只是存储和我使用clamAV病毒扫描这些内容,以防万一。 这是我尝试的命令。 sudo useradd -d /home/publicftp -m publicftp 然后vsftpdconfiguration local_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd 所有其他属性都被注释掉了。 我的问题是,如果我使用端口21(FTP) 连接超时 filezilla 。 但是,如果我使用端口22(SFTP),则publicftp可以连接并访问所有文件夹 – 这意味着他不会被监禁。
我正在准备一个最小的Ubuntu Server 12.04 LTS,它将简单地运行libvirt / KVM来托pipe一些Ubuntu Server 12.04 LTS来宾。 在我的KVM主机上,我创build了一个由两个物理磁盘组成的RAID 1。 有了最终的卷,我使用LVM为根文件系统,交换和/ var创build了一个可分区的空间(因为这是我的KVM客人的生活场所)。 将启动卷安装在驻留在软件RAID上的LVM卷上是否可取? 什么是最佳实践? 在软件RAID上configurationLVM时应该考虑什么?
我正在和一个小团队合作,目前我们有两台服务器,一台用于发布版本,另一台用于开发。 我们有一个通配的SSL证书,所以我们可以覆盖多个子域名。 我在各自的服务器上设置了版本和开发分支,而我们原来只在活动服务器上安装了SSL,而开发版本是标准的HTTP。 现在我们希望能够在开发服务器上build立一个SSL构build,为我们提供更真实的testing环境,但是我们遇到了当前的问题。 我有活的服务器设置,以捕捉所有子域名,因为我们将向不同的组织销售我们的服务,我们希望给予他们追加到URL的机会。 当我尝试在dev服务器上为一个特定的URL设置虚拟主机时,会发生问题。 当加载的login页面在开发服务器上时,login或者踢你的SSL,或者它重新引导你到实时服务器(可能是因为我在实时服务器上的重写规则,以防止你被踢出https)。 这里是我目前的两个configuration文件。 Live服务器 <VirtualHost *:80> ServerName *.fileblimp.com RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] <IfModule pagespeed_module> ModPagespeed Off </IfModule> </VirtualHost> <VirtualHost *:443> ServerName *.fileblimp.com ServerAlias * ServerAdmin webmaster@localhost DocumentRoot /var/www/files <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny […]
我正在运行nginx在Ubuntu的服务器12.04,我刚刚更新到最新的php包如下http://phpave.com/upgrade-php-5-3-php-5-5-ubuntu-12-04-lts /#.Uzsho1RdURg 。 在安装的最后一部分,我被问到是否想replaceconf文件,因为服务器上的文件与原始文件不同,我同意这一点。 不幸的是,我找不到服务器中的conf文件,所以我想知道在哪里可以检查它,因为问题必须在其中。 我试图用nginx 服务php5-fpm restart ,但是失败了,并且返回了以下消息 拒绝发送消息,1条匹配规则; type =“method_call”,sender =“:1.17”(uid = 1000 pid = 8013 comm =“stop php5-fpm”)interface =“com.ubuntu.Upstart0_6.Job”member =“Stop”error name =“(unset )“requested_reply =”0“destination =”com.ubuntu.Upstart“(uid = 0 pid = 1 comm =”/ sbin / init“) 每当我加载服务器,我得到一个502 坏的网关 。 我如何检查它有什么问题?
由于将我们旧的Debian Lenny服务器升级到了Ubuntu 12.04,我们注意到间歇性的访问Apache速度缓慢或失败。 许多或大多数Web请求都能正常工作,但偶尔,Subversion客户端会在等待回复时有效locking,Firefox将加载很长时间,然后重新请求密码等。 这在使用Subversion客户端时非常明显,大概是因为Subversion客户端发出的所有WebDAV请求,但偶尔会发生访问Web服务器托pipe的其他页面的情况。 这是一个标准的Apache + mod_auth_pam设置: <Location /software> AuthType Basic AuthName "Subversion" AuthBasicAuthoritative off AuthPam_Enabled on require group engineering </Location> 这是一个标准的PAM和Winbind设置。 我已经将www-data添加到winbindd_priv组,因为(据我所知),这有助于Apache进行Winbind身份validation。 我们还没有看到任何其他的Winbind问题。 例如,SSHlogin工作得很好(虽然,因为我们经常使用公钥authentication,也许我们只是没有遇到问题)。 打开Winbind和Apache的日志级别,可以发现一些偶然的通信问题,但是为什么没有解释: /var/log/samba/log.winbindd: [2014/04/02 11:41:36.837645, 3] winbindd/winbindd_misc.c:384(winbindd_interface_version) [32654]: request interface version [2014/04/02 11:41:36.837720, 2] winbindd/winbindd.c:732(winbind_client_response_written) Could not write response[32654:INTERFACE_VERSION] to client: Broken pipe [2014/04/02 11:41:36.837789, 3] winbindd/winbindd_getpwnam.c:56(winbindd_getpwnam_send) getpwnam jkelley [2014/04/02 […]
这是我的网站 http://jiyihezi.net/ css和js文件的内容types是text/html ,所以浏览器不能加载它们。 但是,如果我打开这个链接, http://210.73.222.16/memorybox-web CSS和JS文件都加载好了。 所以我尝试启用mime模块和header ,然后我尝试: /etc/apache2/mods-enabled/mime.conf下行添加到/etc/apache2/mods-enabled/mime.conf文件中: <IfModule mod_mime.c> AddType text/css .css AddType text/javascript .js … 改变我的虚拟主机 <VirtualHost *:80> DocumentRoot /var/www/memorybox-web/ ServerName jiyihezi.net <Directory /var/www/memorybox-web/> <Files *.css> Header set Content-type "text/css" </Files> </Directory> </VirtualHost> 然后我重新启动我的Apache,并再次打开浏览器,但仍然无法加载CSS文件和JS文件。