Articles of ubuntu 12.04

无法在Ubuntu 13.04上安装mongodb

我执行了导入公钥的前两个步骤: prachi@prachi-3000-N100:~$ sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 [sudo] password for prachi: Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /tmp/tmp.z5S9qmVca3 –trustdb-name /etc/apt//trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com gpg: key 7F0CEB10: "Richard Kreuter <[email protected]>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 那么第二步是列出mongo文件; […]

在Vagrant框中,Apache虚拟主机被忽略

我遇到的问题是,当我从主机访问http://d7.subdomain.example.org时,它会将我带到默认的apache It Works页面。 我在带有带有virtualbox提供程序的Ubuntu 12.04 Vagrant框的Mac主机上。 我已经检查了sites-enabled /,并且在运行sudo a2ensite d7.subdomain.example.org命令之后,站点确实出现在那里。 如果我去http://d7.subdomain.example.org/drupal/site-docroot它把我带到正确的地方。 这似乎是无视我的虚拟主机一起。 我的stream浪文件: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "precise32" config.vm.box_url = "http://files.vagrantup.com/precise32.box" config.hostmanager.enabled = true config.hostmanager.manage_host = true config.vm.define "drupal" do |node| node.vm.hostname = "d7.subdomain.example.org" node.vm.network :private_network, ip: "172.22.22.26" node.hostmanager.aliases = [ "www.d7.subdomain.example.org" ] end […]

如何生成与Tomcat7一起使用的自签名证书

目标:对我的开发Tomcat服务器使用自签名的证书。 第1步:使用此Ubuntu证书指南,使用openssl创build证书 : openssl req -new -key server.key -out server.csr 我遵循自签名的NO密码指导。 步骤2:更新Tomcatconfiguration文件/etc/tomcat7/server.xml <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" keystoreFile="/etc/ssl/private/server.key" keystorePass="" maxThreads="150" scheme="https" secure="true" protocol="org.apache.coyote.http11.Http11AprProtocol" clientAuth="false" sslProtocol="TLS"/> 第3步:重新启动Tomcat: sudo service tomcat7 stop sudo service tomcat7 start 在另一台计算机上通过Chrome浏览器testing 所有到服务器的SSL连接都被拒绝 ,但标准的http连接正常工作。 Chrome中的错误详情: Google Chrome's connection attempt to [domain] was rejected. The website may be down, or your network may not […]

Postfix SSL证书validation失败的问题

多年来,我们在Ubuntu 12.04服务器上使用Postfix通过提交registry单发送邮件。 这个工作最迟在2017年3月进行。 然而,突然postfix是运行到许多,虽然不是所有的域“证书validation失败”错误(按照mail.log)。 例如,它拒绝发送到Gmail地址的任何邮件,但将通过几个.edu域。 我检查了SSL证书,以确保它们是根据一些在线指南得到的最新的,并且有一个合适的ca-bundle.srt文件,并且main.cf指向正确的文件。 所有似乎退房。 再次,在2017年3月之前没有这样的问题。 如果有帮助,一个.edu邮件服务器的日志描述的例子; Oct 3 19:20:39 server postfix/pickup[27108]: 7A1BA5E02FB: uid=33 from=<www-data> Oct 3 19:20:39 server postfix/cleanup[27114]: 7A1BA5E02FB: message-id=<07e5de6389f1ee1f0db978687a2a701c@server> Oct 3 19:20:39 server postfix/qmgr[27109]: 7A1BA5E02FB: from=<www-data@server>, size=2354, nrcpt=1 (queue active) Oct 3 19:20:39 server postfix/smtp[27116]: certificate verification failed for mailgateway[ip]:25: untrusted issuer /C=SE/O=AddTrust AB/OU=AddTrust Externa$ Oct 3 19:20:39 server postfix/pickup[27108]: […]

-generic和-virtual内核有什么区别?

我在机器上使用XEN服务器6.0,我想安装Ubuntu 12.04 64位。 我想优化作为虚拟机运行的操作系统。 我select从“ http://archive.ubuntu.net/ubuntu/ ”安装,但它显示了广泛的内核: linux-image-extra-3.2.0-23-virtual linux-image-extra-virtual linux-image-generic linux-image-extra-3.2.0-24-virtual linux-image-3.2.0-25-virtual linux-image-3.2.0-23-generic 哪个内核是作为虚拟机运行的优化内核? 这些内核有什么区别?

Apache:apachectl重新启动不会重新加载envvars

好吧,在新的Ubuntu 12.04上,我通过sudo tasksel install lamp-server来安装灯pipe栈 接下来我要做的就是改变apache运行的用户和组并重新启动。 应该很容易吧? 错误。 Apache的安装,使得它从/ etc / apache2 / envvars获得用户和组我编辑这个文件,并更改用户和组,然后执行“apachectl restart”和… nope,旧的用户和组仍在使用(通过phpinfo确认)。 但是,如果我做“apachectl stop”,然后“apachectl start”,那么它的工作。 然而,这很糟糕,因为我试图为Vagrant编写一个bootstrap.sh脚本,而且这两种方法都不能在这种情况下工作(我猜停止/启动发生得太快,所以“stop”工作时,“start”不。 在一个完美的世界里,“重新启动”将会完成它的工作,并且实际上从envvars中重新加载新的值。 有任何想法吗??

在LAMP网站上恢复丢失的POST数据

我已经有一个拧在我的基于LAMP的网站上,从窗体张贴到网站的某个string值没有被存储在数据库。 它的数据库列是一个枚举,但它需要是一个varchar。 当从站点的PHP代码运行INSERT sql时,奇怪的mysql没有发出错误。 mysql bin日志没有启用,所以我不能使用它。 我想也许是Apache日志,但似乎没有POST数据。 有没有任何可能的方法来恢复这个? 操作系统是Ubuntu的12.04

重新安装phpmyadmin会对我的数据库有什么影响吗?

我很新,不知何故,我崩溃了我的phpMyAdmin网站。 改变一次端口后,不能无错显示。 那么当我重新安装我的phpMyAdmin的时候它对我的数据库有什么影响? 我想这不会改变任何东西,因为它不会与MySQL捆绑在一起,但我想确定一下。 我可以简单地卸载并重新安装,而不会丢失MySQL数据库中的任何数据吗? 我使用Ubuntu 12.04服务器。

安全地运行两个版本的Nginx

我在同一个ubuntu盒子上运行一个networking服务器和streamvideo服务器。 我有箱子上的资源来处理所有事情,时间可能会使用两个盒子,但我现在不想要两个盒子的开销。 我想运行两个版本的nginx,一个是编译的rtmp模块,一个是out的。 我之所以这样做,是因为我使用HLS设置进行了很多调整,并添加了各种选项等,并且需要重新启动nginx才能使更改生效。 我不希望重新启动与托pipe的网站nginx。 我可以安全地在两个地方安装nginx吗?

Opscenter 5.0:用户pipe理查询

我已经安装了opscenter的免费tarball版本,并且在用户pipe理方面存在问题。 我有通过validation启用: [authentication] enabled = true …并可以以pipe理员用户身份login。 但是,其余的用户pipe理function是不可访问的。 文档( http://www.datastax.com/documentation/opscenter/5.0/opsc/configure/opscManageUsers.html )解释了如何启用身份validation,然后相当清楚地pipe理用户/angular色。 但是,执行此操作的菜单选项是灰色的。 有人可以解释我需要做什么来启用此function? 为了使用opscenter,我们将需要访问控制工作。