Articles of ubuntu 12.04

未find数据源名称,且未指定默认驱动程序

我试图在Ubuntu 12.04上安装ODBC ,以便与Zabbix 。 我按照这些Zabbix说明安装了unixODBC ,并修改了我的/etc/odbc.ini,如下所示: [eyatest] Description = MySQL connection to 'dbname' database Driver = MySQL Database = dbname Server = localhost UserName = root Password = **** Port = 3306 Socket = /var/lib/mysql/mysql.sock 但是,当我尝试与isql连接,我得到这个问题的标题中的错误: sudo isql -v eyatest [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified 我错过了什么? 编辑:我的/etc/odbcinst.ini看起来像这样: [MySQL] Description […]

wget:无法parsing主机地址`http'

当我做一个wget时候,我在我的Ubuntu 12.04 64位机器上得到了这个奇怪的东西 $ wget google.com –2014-07-18 14:44:32– http://google.com/ Resolving http (http)… failed: Name or service not known. wget: unable to resolve host address `http' 我之前遇到过这个问题,当我得到它的任何网页(而不是http),这需要我将我的名称服务器添加到/etc/resolv.conf 。 但是,这似乎并不是问题,而是认为http是不同的。 有什么build议吗?

如何使用terminal在Ubuntu 12.04上安装Eclipse Classic的最新版本?

请问如何使用terminal在Ubuntu 12.04上安装最新的Eclipse Classic(4.2)? 如果你能指导我一步一步,我将不胜感激。

部署到数字海洋的meteor应用程序坚持100%的CPU和OOM

我有一个meteor(0.8.0)应用程序部署使用meteor到数字海洋卡住在100%的CPU,只有崩溃与内存不足,并再次启动100%的CPU。 它在过去的24小时内一直如此卡住。 怪异的部分是没有人使用的服务器和meteor.log没有显示太多的线索。 我有MongoHQ oplog的数据库。 数字海洋规格: 1GB内存30GB SSD磁盘纽约2 Ubuntu 12.04.3 x64 屏幕截图显示问题 请注意,截图是昨天捕获的,它一直保持与100%cpu挂钩,直到它崩溃与内存不足。 日志显示: 致命错误:疏散分配失败 – 进程内存不足错误:永久检测到的脚本被信号终止:SIGABRT错误:永远重新启动脚本5次 顶部显示: 26308meteor20 0 1573m 644m 4200 R 98.1 64.7 32:45.36节点 它是如何开始的:我有一个应用程序,通过csv或mailchimp oauth接收电子邮件列表,通过批量程序调用将其发送到fullcontact,然后更新meteorcollections品相应地取决于响应状态。 一个来自200响应的片段 if (result.statusCode === 200) { var data = JSON.parse(result.content); var rate_limit = result.headers['x-rate-limit-limit']; var rate_limit_remaining = result.headers['x-rate-limit-remaining']; var rate_limit_reset = result.headers['x-rate-limit-reset']; console.log(rate_limit); console.log(rate_limit_remaining); console.log(rate_limit_reset); _.each(data.responses, […]

监视并重新启动服务器上的Dart进程

我的轻量级dart:io基于dart:io的web服务器看起来像这样: import 'dart:io'; void main() { HttpServer.bind(InternetAddress.ANY_IP_V4, 80).then((server) { server.listen((HttpRequest request) { // … do stuff… request.response.write('Alright, here is your response…'); request.response.close(); }); }); print("listing…."); } 让我们启动它(在Ubuntu服务器1.04上): $ nohup dart myServer.dart & Listening… 一切看起来不错。 我可以退出我的shell,并保持服务。 但是,如果某些事情发生严重错误(例如抛出未处理的exception),Dart进程就会停止。 任何build议如何监测飞镖进程,并在必要时重新启动? 我想我可以写一个简单的脚本,只是想知道是否有一个更好的/推荐的方式? (通过mod_dart托pipeApache可能是一个select – 虽然感觉像是过度杀伤,而且当前版本不稳定。)

无法让elasticsearch在Ubuntu 12.0.4(Natty)上作为服务运行 – ElasticSearch可能无法启动

我已经阅读了这里和这里和这里提供的三个解决scheme。 跟着那三个然而它不起作用。 每当我尝试运行elasticsearch作为服务: /etc/init.d/elasticsearch start 它总是给我: Waiting for ElasticSearch………………………….. WARNING: ElasticSearch may have failed to start. 现在,当我尝试查找错误日志(/ var / log / elasticsearch)时,它永远不会存在。 任何想法?

安装MariaDB:未满足的依赖关系,mariadb-server-10.0

ubuntu:~$ sudo apt-get install mariadb-server Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. […]

在Ubuntu 12.04上安装ElasticSearch

我有一台运行Ubuntu 12.04的虚拟机,正在尝试安装ElasticSearch。 我已经按照这个要求学习了​​最好的“学习X的硬道路”的精神,一切安好 – 软件包被下载,解压,复制到正确的地方等。 当我运行它时,问题来了 – 要么通过调用: $ /usr/local/share/elasticsearch/bin/elasticsearch 或通过使用服务包装( $ rselasticsearch console ) 输出被logging到wrapper.log并包含在下面。 我想我可能会有JAVA的home / classpath问题,但是我不确定。 任何帮助,最感激地收到! Running ElasticSearch… wrapper | Unable to write to the configured log directory: /usr/local/share/elasticsearch/logs (No such file or directory) wrapper | The directory does not exist. wrapper | Unable to write to the configured log file: […]

如何在ubuntu上启用LAMP中的mod_rewrite?

我在我的机器上使用Ubuntu 12.04 LTS Linux。 我已经安装了LAMP。 现在我想启用mod_rewrite模块。 我做了很多谷歌,并尝试了很多技巧,但无法启用mod_rewrite。 任何人都可以帮我启用mod_rewrite? 提前致谢。

PIP找不到满足要求SQLAlchemy的任何下载

Ubuntu 12.04 Apache 2.2.22 PIP已经停止在我的Ubuntu服务器上工作,并给出了下面的错误,当我尝试下载任何东西。 $ sudo pip install SQLAlchemy Downloading/unpacking SQLAlchemy Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement SQLAlchemy No distributions at all found for SQLAlchemy Storing complete log in /home/user/.pip/pip.log 以下所有也不起作用 $ sudo pip install –upgrade pip $ sudo apt-get install build-essential 我的/etc/environment具有以前工作的以下设置。 http_proxy="http://myproxyhere:portnumberhere/" HTTP_PROXY="http://myproxyhere:portnumberhere/" […]