Articles of ubuntu 10.04

Haproxy mysql故障转移负载平衡

我已经安装了mysql master-master复制,现在我正在尝试使用Haproxy来平衡mysql服务器。 负载均衡器: 192.168.1.5 mysql1: 192.168.1.7 mysql2: 192.168.1.8 下面的haproxyconfiguration工作正常,它是像roundrobin旋转节点。 # this config needs haproxy-1.1.28 or haproxy-1.2.1 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot /usr/share/haproxy chroot /etc/haproxy user haproxy group haproxy pidfile /var/run/haproxy.pid daemon #debug #quiet defaults log global #mode http mode tcp #option httplog option dontlognull retries […]

如何在100台远程机器上自动安装Ubuntu?

帮帮我! 我非常需要一些build议/帮助… 我想要使​​用从我的Web服务器访问的Kickstartconfiguration文件,在全国各地的100台远程机器上自动安装Ubuntu 10.04 …(通过CD或USB)。 如何创build启动CD(或USB)? 如何将启动参数专门添加到启动CD(或USB),以告诉它用于自动安装Kickstart的URL?

如何在Ubuntu Server 10.04中升级内核?

我正在运行Ubuntu Server 10.04 LTS。 当我login时,我看到消息: 39 packages can be updated. 18 updates are security updates. 通常的公式 sudo apt-get update sudo apt-get upgrade 给我一个信息,我没有看到在这个盒子上: The following packages have been kept back: linux-headers-server linux-image-server linux-server 如果我继续进行apt-get升级,其余的软件包将按照我的预期进行升级。 我如何更新内核文件? 编辑:我错过了这个早期的问题和答案,基本上解决了我的问题: 有人能为我澄清Ubuntu(Debian)dist-upgrade吗?

如何在Linode上设置FTP?

看来,WordPress需要安装一个FTP服务器来从networking界面上传文件。 我已经安装WordPress博客。 我需要安装一些插件,但我得到一个盒子: – To perform the requested action, WordPress needs to access to your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host. 像这样的东西: – 你能帮我吗?

将ext4分区转换为ext3而不格式化硬盘

我想将ext4分区转换为ext3分区而不格式化硬盘。 这是可能的,并build议?

HAProxy:显示“BADREQ”| BADREQ的成千上万

我的HAProxyconfiguration。 #HA-Proxy version 1.3.22 2009/10/14 Copyright 2000-2009 Willy Tarreau <[email protected]> global maxconn 10000 spread-checks 50 user haproxy group haproxy daemon stats socket /tmp/haproxy log localhost local0 log localhost local1 notice defaults mode http maxconn 50000 timeout client 10000 option forwardfor except 127.0.0.1 option httpclose option httplog listen dcaustin 0.0.0.0:80 mode http timeout connect 12000 timeout […]

Ubuntu 10.4上的postgresql不会在启动时启动

我试图在Ubuntu服务器10.04(64位)上启动postgresql 8.4。 首先,我尝试了: su -c 'pg_ctl start -D /home/postgres -l /home/postgres/serverlog' –preserve-environment postgres在init.d/rc.local的结尾处,无济于事。 serverlog文件甚至不在系统上。 然后我试着运行update-rc.d postgresql-8.4 defaults , System start/stop links for /etc/init.d/postgresql-8.4 already exist. 一个相关的信息是通过运行su -c 'pg_ctl start -D /home/postgres -l /home/postgres/serverlog' –preserve-environment postgres作为root用户而没有–preserve-environment标志,它不会'不承认pg_ctl。 否则,服务启动,我可以连接到数据库。 但即使在保留环境的情况下,在init文件中运行时服务也不会启动。 任何线索? 谢谢! 维克。

设置vsftpd挂在列表命令上

我安装了vsftpd并进行了configuration。 当我尝试使用传输连接到FTP服务器,它设法连接,但挂在列表“/” 然后,我收到一条消息:无法检索“/”的文件列表。 控制连接超时。 这与我的iptables有什么关系? 我的规则如下所列: *filter # Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT # Accepts all established inbound connections -A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT # Allows all […]

Postgresql 9.3安装失败

我试图安装postgresql 9.3在我的Ubuntu的清醒机器。 问题是运行apt-get install postgresql-9.3时出现这个错误 => apt-get install postgresql-9.3 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: postgresql-client-9.3 Suggested packages: oidentd ident-server locales-all postgresql-doc-9.3 The following NEW packages will be installed: postgresql-9.3 postgresql-client-9.3 0 upgraded, 2 newly installed, 0 to remove and 700 not upgraded. […]

Ubuntu不让我下载使用任何东西,但apt-get

我只是试图从github克隆一个存储库,但我认为我的问题跨越git或github。 我已经尝试了以下方法: sudo wget'http: //github.com/symfony/symfony/tarball/master – 2010-07-30 07:51:36–'http://github.com/symfony/symfony/tarball/master 解决github.com … 207.97.227.239 连接到github.com | 207.97.227.239 |:80 …已连接。 HTTP请求已发送,正在等待响应…读取错误(由对等方重置连接)在标题中。 重试。 – 2010-07-30 07:51:38–(try:2)'http://github.com/symfony/symfony/tarball/master 连接到github.com | 207.97.227.239 |:80 …已连接。 HTTP请求已发送,正在等待响应…读取错误(由对等方重置连接)在标题中。 重试。 – 2010-07-30 07:51:40–(try:3)'http://github.com/symfony/symfony/tarball/master 连接到github.com | 207.97.227.239 |:80 …已连接。 HTTP请求已发送,正在等待响应…读取错误(由对等方重置连接)在标题中。 重试。 由于wget没有工作,我想我会尝试使用git(知道我的防火墙可能阻止了git协议)。 正如你所看到的,看起来防火墙确实阻止了它。 sudo git clone git://github.com/symfony/symfony.git 在/home/myname/symfony/.git/中初始化了空的Git仓库 github.com [0:207.97.227.239]:errno =拒绝连接 致命:无法连接套接字(连接被拒绝) 因为, git协议没有工作,我想我会尝试http方法。 sudo git clone'http: //github.com/symfony/symfony.git […]