Questions tagged «ubuntu»

Ubuntu Linux是Debian的衍生产品,旨在使Linux成为主流。该站点上的问题通常应参考Ubuntu Server。请注意,http://askubuntu.com专用于Ubuntu问题。

5
netstat -ntap对某些连接不显示pid /进程名?
我有ubuntu / hardy服务器,内核为2.6.24-23-server和netstat: # netstat --version net-tools 1.60 netstat 1.42 (2001-04-15) 问题是我们有很多已建立的连接,它们在netstat -ntap输出中不显示PID或程序名称。Netstat是从根调用的,没有chroot,grsecurity,也没有类似的东西(或因此而被告知:)。 关于什么可能是错的任何想法? 更新 lsof -n -i 工作正常,并显示连接的pid /进程名称。


2
清漆守护程序未在配置的端口上侦听
我正在尝试在Ubuntu 16.04上安装清漆, 我读了几篇文章都没有用。从我阅读的内容来看,自ubuntu 15.04起,配置清漆的方式已更改(由于systemd)。 现在,我陷入困境,这是行不通的: / etc / default / varnish: DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f /etc/varnish/default.vcl \ -S /etc/varnish/secret \ -s malloc,256m" /etc/varnish/default.vcl(通常指向指向127.0.0和端口8080的主机,但出于调试目的,我将其修改为外部域)vcl 4.0; # Default backend definition. Set this to point to your content server. backend default { .host = "www.varnish-cache.org"; .port = "80"; } /etc/apache2/ports.conf …

3
如何从MCE消息中查找有故障的内存模块?
我试图了解MCE消息以查找服务器上哪个内存模块损坏。此消息出现在/var/log/kern.log一台服务器中,该服务器今天冻结了两次。 Apr 13 22:39:22 mbox kernel: [36247975.116860] sbridge: HANDLING MCE MEMORY ERROR Apr 13 22:39:22 mbox kernel: [36247975.116867] CPU 0: Machine Check Exception: 0 Bank 5: 8c00004000010090 Apr 13 22:39:22 mbox kernel: [36247975.116869] TSC 0 ADDR 4a0d75900 MISC 21405cdc86 PROCESSOR 0:206d7 TIME 1428957562 SOCKET 0 APIC 0 Apr 13 22:39:22 …
11 linux  ubuntu  memory 

1
Ubuntu上的UFW允许LAN上的所有流量
我想允许所有LAN通信到我的Ubuntu服务器。我已经阅读了文档并看到了命令,但是当我尝试为我的IP范围编辑命令时,出现错误。如何允许所有从192.168.15.0-192.168.15.255开始的流量? sudo ufw allow from 192.168.15.0/255错误:错误的源地址 好像是15(八进制八进制)引起了错误。几乎像UFW一样,并不期望LAN具有唯一的IP集。 谢谢
11 ubuntu  ufw 

7
启动时启动Nginx
我能够安装并运行nginx和passenger,但是无论何时重新启动服务器我都无法启动nginx。要启动nginx进程,只需输入sudo / opt / nginx / sbin / nginx即可。据我了解,我在/etc/init.d中放入ubuntu hardy的所有内容都会执行。有人知道模拟该命令行调用的命令吗? 须藤/ opt / nginx / sbin / nginx
11 ubuntu  nginx  startup 

4
/ usr / sbin / apache2ctl:124:www浏览器:找不到
我正在配置新的VPS以使用Apache和Passenger托管Rails应用程序。我已经在几个月前配置了另一个VPS并正在运行。 在新版本中aptitude,我通过第一次安装了Apache及其软件包。在最新的VPS上运行以下命令将返回成功的响应 root@www:/etc/apache2# apache2ctl status Apache Server Status for localhost Server Version: Apache/2.2.8 (Ubuntu) Server Built: Jul 10 2009 18:47:48 ... 旧版VPS上的同一命令返回以下错误 root@www:/etc/apache2# apache2ctl status /usr/sbin/apache2ctl: 124: www-browser: not found 我在此VPS上的Apache上没有任何问题,但是我想知道如何解决此错误。

6
除了“解压缩”以外,还有其他选项可以在Ubuntu中解压缩文件吗?[关闭]
关闭。这个问题是题外话。它当前不接受答案。 想改善这个问题吗? 更新问题,使它成为服务器故障的主题。 6年前关闭。 我的系统管理员现在无法访问,并且我在服务器上有一个要解压缩的压缩文件...但是,我们目前没有安装zip和解压缩,并且我没有root用户权限来安装它们。 .. 我会完全失去选择吗?还有其他可以解压缩该文件的东西吗?

4
Ubuntu根驱动器空间不足,我无法通过du或lsof找到源
Ubuntu 15.10计算机上的根驱动器几乎没有空间,但是我找不到源。空间sdb2不足的驱动器可用,313M的51G可用。文件系统为ext4。 这是sudo du -h / --max-depth=1输出: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 789M 9.4M 780M 2% /run /dev/sdb2 51G 48G 313M 100% / tmpfs 3.9G 12K 3.9G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup …

2
是否有办法知道为什么重新启动服务以及谁重新启动了服务?
Ubuntu 14.04 克拉马夫0.98.7 问题clamav-daemon几乎每天都会重启: Sep 1 06:30:00 x-master clamd[6778]: Pid file removed. clamd[6778]: --- Stopped at Tue Sep 1 06:30:00 2015 clamd[5979]: clamd daemon 0.98.7 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) clamd[5979]: Running as user root (UID 0, GID 0) clamd[5979]: Log file size limited to 4294967295 bytes. clamd[5979]: Reading …

3
无法访问“ /root/.config/git/attributes”:“权限>拒绝”
在我们的Ubuntu Server中,我们能够以Nginx用户身份进行克隆,/usr/share/nginx/www该用户具有www-data:www-data所有权,并收到如下警告: ”警告:无法访问'/root/.config/git/attributes':权限被拒绝” 我们正在执行命令 sudo -u www-data git clone <repo>. 使用sudo,我们会收到此警告,否则它将正常工作。 我们可以克隆为root用户,没有问题。 .gitconfig仅位于根目录中,请查看内容: root@geo:~# cat /root/.gitconfig [user] name = pc_user email = pcgeopc@gmail.com root@geo:~# 任何人都可以帮助我们。 我们尝试了各种选项,例如/root/.config/直接手动创建和更改权限等。但是没有任何效果。有人可以帮我吗。 另请参见: root@geo:/setup/test# ll /setup/ total 16 drwxr-xr-x 4 www-data www-data 4096 Oct 9 00:14 ./ drwxr-xr-x 24 root root 4096 Oct 9 00:14 ../ …
10 ubuntu  gitlab  git 

1
Munin Postgres插件:未找到DBD :: Pg
我正在尝试为Munin激活一些Postgresql插件。运行时,munin-node-configure --suggest | grep postgres我得到以下输出: postgres_bgwriter | no | no [DBD::Pg not found, and cannot do psql yet] postgres_cache_ | no | no [DBD::Pg not found, and cannot do psql yet] postgres_checkpoints | no | no [DBD::Pg not found, and cannot do psql yet] postgres_connections_ | no | no [DBD::Pg …

1
Ubuntu 14.04 ping通:sendmsg:不允许操作
问题显然出在我的范畴之外,Ubuntu无法访问任何网络,但是以某种方式,我使用虚拟盒的VM都能够访问Internet。我试图进行以下更改,但您却无法成功。我对盒子上的毛病很困惑。任何帮助表示赞赏。 carl@carl-Latitude-E6410:~$ sudo ip6tables -P INPUT ACCEPT carl@carl-Latitude-E6410:~$ sudo ip6tables -P OUTPUT ACCEPT carl@carl-Latitude-E6410:~$ sudo ip6tables -P FORWARD ACCEPT carl@carl-Latitude-E6410:~$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted ^C --- 8.8.8.8 ping statistics --- 2 packets transmitted, 0 received, …

1
通过VM iproute多个ADSL负载均衡器
很长一段时间(2年?),我一直在运行具有非常基本的出站负载平衡功能的虚拟机(Ubuntu 12.04服务器),通过不同的ADSL路由器发送不同的出站连接。 通过使用没有NAT伪装的iproute进行简单配置,NAT由出站ADSL路由器本身管理,允许连接绕过负载平衡路由器VM直接直接路由回发送方。路由器VM上也没有防火墙规则(iptables)。 echo 1 > /proc/sys/net/ipv4/ip_forward # flush initially ip route flush cache # remove whatever is there for the default to begin with ip route delete default # default load balancing rule ip route add default scope global \ nexthop via ${ROUTER2} dev ${INTERFACE} weight 6 \ nexthop …

2
“未加载MPM”,但我什至不使用MPM
在Vagrant的Ubuntu Precise64上运行Apache2。当我尝试启动它时,它说: vagrant@precise64:/etc/apache2$ /etc/init.d/apache2 start * Starting web server apache2 * * The apache2 configtest failed. Output of config test was: AH00534: apache2: Configuration error: No MPM loaded. Action 'configtest' failed. The Apache error log may have more information. 但问题是,我的/etc/apache2/apache2.conf文件在任何地方都不需要MPM!我将其粘贴在此处,但会产生大量帖子... 我尝试查找错误日志,但在任何地方都找不到。救命? 编辑: apache2 -l给出此: vagrant@precise64:/$ apache2 -l Compiled in modules: …

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.