Questions tagged «ubuntu-12.04»

Ubuntu 12.04(名为“ Precise Pangolin”)是Ubuntu Linux的长期支持(LTS)版本。LTS版本收到5年的更新,并已获得Canonical的付费支持。版本号来自发布的年份和月份(2012年4月)。

3
如何在NGINX PageSpeed模块资源上启用gzip压缩?
我一直致力于优化某个网站,以使其在Google PageSpeed Insights工具(针对移动设备和台式机)上获得100分。大多数项目都可以正常工作,但是我仍然收到该网站的“启用压缩”警告。 这很麻烦,因为在我的服务器上启用了gzip,并且唯一未压缩的资源来自NGINX PageSpeed模块。我已经浏览了Google网站上的配置页面,但是除了已经存在的常规NGINX配置之外,没有任何内容描述如何启用压缩。 我的问题是:如何启用gzip压缩使其适用于pagespeed资源? 我的服务器设置: Ubuntu 12.0.4.3 LTS NGINX-使用PageSpeed模块1.6.29.5 beta进行自定义编译1.5.4 NGINX服务器配置: user www-data; #set worker processes to cpu processes worker_processes 4; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { worker_connections 1024; } http { client_max_body_size 200m; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; sendfile on; keepalive_timeout 3; types_hash_max_size 2048; gzip on; …

2
如何在Ubuntu 12中的apt-get升级过程中自动执行更改的配置文件
我喜欢使用“ knife cloudstack server create ...”来构建新的VM。我的引导程序模板以“ apt-get更新”和“ apt-get -y升级”开始。 然后,升级将因以下原因而停止: 10.190.113.11 Configuration file `/etc/nscd.conf' 10.190.113.11 ==> Modified (by you or by a script) since installation. 10.190.113.11 ==> Package distributor has shipped an updated version. 10.190.113.11 What would you like to do about it ? Your options are: 10.190.113.11 Y or …
13 ubuntu-12.04  apt  chef 

14
流浪错误:连接超时。重试
我有一台装有Ubuntu 12.04,Virtualbox 4.3和Vagrant 1.5.1的服务器。我正在尝试使用此框http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box但未成功。当我“无所事事”运行时,我收到以下消息: Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'centos-64-x64-vbox4210'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: rafael_default_1396403974194_51967 ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... …

2
在auth.log中多次发现的用户smmsp
运行托管约10个Wordpress网站的Ubuntu服务器 在我的身份验证日志中找到这个正常吗? Oct 26 08:40:01 andre CRON[4737]: pam_unix(cron:session): session opened for user smmsp by (uid=0) Oct 26 08:40:01 andre CRON[4737]: pam_unix(cron:session): session closed for user smmsp Oct 26 09:00:01 andre CRON[6874]: pam_unix(cron:session): session opened for user smmsp by (uid=0) Oct 26 09:00:01 andre CRON[6874]: pam_unix(cron:session): session closed for user smmsp …

2
Postfix master.cf与main.cf
我经常看到可以在主文件中使用-o前缀在master.cf中指定相同的设置。 我的问题是,一个文件是否覆盖另一个文件,如果是,那么如果两个文件中都存在相同的设置(具有不同的值),则哪个文件具有优先权? 例如,如果 smtpd_tls_auth_only=yes 是在main.cf中指定的,但是 -o smtpd_tls_auth_only=no 是在master.cf中指定的,后缀会注意哪一个?

5
在Linux中使用ip命令删除IP
如果我添加两个这样的IP: ip addr add 1.1.1.1/24 dev eth2 ip addr add 1.1.1.2/24 dev eth2 然后我尝试删除这样的一个: ip addr del 1.1.1.2/24 dev eth2 这两个IP都将被删除,我不知道如何处理。 有人知道如何解决吗?

2
在Ubuntu AWS上打开端口80
我正在ubuntuAWS实例托管的计算机上运行tomcat服务器。我可以通过到达服务器,public_ip:8080但是当我将侦听端口server.xml从更改8080为80连接时,远程主机会拒绝。 端口号80已启用AWS firewall。 我检查了ufw通过,sudo ufw status但结果是inactive 是ufw底层防火墙机制的前端吗? 如何启用端口80上firewall? 预先感谢。 的输出iptables -S: -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT 输出 netstat -punta Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 785/mysqld tcp 0 0 0.0.0.0:22 …

4
/ run中的空间不足
在Ubuntu Precise上,我的/ run空间不足: admin@foo:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 6.6G 12G 38% / udev 10M 8.0K 10M 1% /dev none 50M 40M 11M 79% /run none 5.0M 0 5.0M 0% /run/lock none 249M 0 249M 0% /run/shm 我应该分配更多吗?怎么样? 编辑:这是我的fstab: admin@foo:~$ cat /etc/fstab proc /proc …

3
防止apt-check耗尽我的所有记忆
在具有512MB RAM服务器的Ubuntu 12.04 LTS上,该服务器apt-check使用多达250个内存,并导致我的系统每晚无法使用,例如 ps ax | grep apt 14895 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable 14896 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable 14899 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable 14902 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable 14906 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check --human-readable 14912 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check …

4
您如何命名码头集装箱?
在Ubuntu 12.04.4上,我安装了Docker 1.1.2。我尝试使用以下方法尝试设置图像ID: sudo docker run -i -t --name=container1 ubuntu date 但是,我的尝试似乎失败了。每次我做一次docker ps -a图像ID都是随机的。如果添加,我可以设置主机名,-h container1但我想设置图像ID。我在这里想念什么?谢谢!

3
如何在EC2上的/ mnt中挂载/ tmp?
我想知道在EC2实例上/tmp的临时存储中挂载端点/mnt并为ubuntu用户提供默认写权限的最佳方法是什么。 有人建议这样编辑/etc/rc.local: mkdir -p /mnt/tmp && mount --bind -o nobootwait /mnt/tmp /tmp 但是,这对我不起作用(文件不同)。 我尝试编辑默认的fstab条目: /dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 用/ tmp替换/ mnt并给它一个umask = 0777,但是由于cloudconfig,它不起作用。 我正在使用Ubuntu 12.04。谢谢。


2
如何在Windows Server 2008R2和运行Ubuntu 12.04的客户机之间共享剪贴板?[关闭]
已关闭。这个问题需要细节或说明。它当前不接受答案。 想改善这个问题吗?添加详细信息并通过编辑此帖子来澄清问题。 6年前关闭。 我将Windows Server 2008 R2与Hyper-V和运行Ubuntu 12.04 LTS的来宾一起使用。 如何在Windows Server 2008R2和运行Ubuntu 12.04的客户机之间共享剪贴板? 更新 连接这些机器需要什么协议?我想在Ubuntu 上按ctrl+ c,然后在Windows Server上按ctrl+ v并以这种方式复制文本。 现在,我使用WinSCP。因此,我使用文本创建了一个文件,然后将其复制。这不是容易和快速的。

5
在EC2实例上的Ubuntu 12.04中由于I / O等待而导致高负载
我正在使用Ubuntu服务器12.04,无法找到负载原因,从上周开始我已经看到服务器响应时间的变化 阅读Linux故障排除,第一部分:高负载后 看来CPU和RAM没有问题,并且 使用我得到以下输出的命令,此负载可能与I / O绑定负载有关top 在这里97.6%wa,RAM是空闲的,不使用任何交换。 以下是iostat播种有的命令的输出89% iowait ubuntu@ip-my-sys-ubuntu:~$ iostat Linux 3.2.0-58-virtual (ip-172-31-6-203) 02/19/2015 _x86_64_ (1 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 3.05 0.01 3.64 89.50 3.76 0.03 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn xvdap1 69.91 3.81 964.37 978925 247942876 我还使用了iotop修复间隔显示99%I / O后,磁盘将I观察者写为1266 KB/s 和 是不好吗?随着响应时间的缩短。是什么原因造成的? 其他人要求的编辑 …

1
将sysctl tcp_retries1设置为3时,TCP数据包被重传7次-为什么?
Ubuntu 12.04 我试图更好地理解,当目标未收到确认时,TCP将尝试重传数据包多少次。阅读了tcp手册页后,似乎很明显这是由sysctl tcp_retries1控制的: tcp_retries1 (integer; default: 3) The number of times TCP will attempt to retransmit a packet on an established connection normally, without the extra effort of getting the network layers involved. Once we exceed this number of retransmits, we first have the network layer update the route …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.