Questions tagged «ubuntu»

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

3
.pgpass与postgreSQL无法正常工作
我已经将.pgpass文件放在/folder/.pgpass中,它看起来像这样 *:*:*:postgres:password_for_postgres 我有一个bash脚本,可以从postgreSQL备份数据库: #!/bin/bash export PGPASSFILE=/folder/.pgpass echo $PGPASSFILE pg_dump --username=postgres --format=c --file=/backup/db/db.sqlc database 但是,脚本仍然提示我输入密码。据我所知,PGPASSFILE具有应有的值。关于可能是什么问题的任何提示? /千

2
Ubuntu连接到SSTP VPN
有没有人有将Ubuntu 10.10计算机连接到SSTP VPN服务器的经验?我还没有找到太多有关如何做的信息。
13 ubuntu  vpn  sstp 

3
如何将所有外发电子邮件从后缀重定向到单个地址进行测试
我正在为基于Web的应用程序设置测试服务器,该服务器发送一些电子邮件通知。 有时,测试是使用真实的客户数据执行的,因此,我需要保证服务器在测试过程中无法向真实的客户发送电子邮件。 我想要的是配置后缀,以便它接收任何传出的电子邮件并将其重定向到单个电子邮件地址,而不是传递到实际目的地。 我正在运行Ubuntu服务器9.10。 先感谢您

4
在Ubuntu上安装msttcorefonts
我正在用称为PrinceXML的东西生成PDF ,看来它需要一个名为:msttcorefonts的软件包。 我一直无法使用aptitude来获取它,因此我将其作为错误接收: $ sudo apt-get install msttcorefonts Reading package lists... Done Building dependency tree Reading state information... Done Package msttcorefonts is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: …
13 ubuntu  apt 

4
如何配置私有(仅限朋友)IRC服务器?
我试图在我的机器上设置IRC服务器,以供一堆朋友和我使用。这是一个Ubuntu盒子,根据Ubuntu Docs的说明,我已经安装了舞者-ircd和舞者-服务,并启动了所有程序。我现在想锁定服务器,以便用户需要“全局”密码才能连接。或者,每个用户都可以有自己的用户名/密码,只要我能够预先批准谁在服务器上注册昵称即可。
13 ubuntu  irc 


4
在Ubuntu 16.04上创建守护程序
我用PHP开发了一个搜寻器,该搜寻器解析具有特定标头的URL,并将所有内容URL放入队列。它工作正常。 我在ubuntu 14.04中开发了此代码,并将.conf文件放入/ etc / init文件夹中,内容如下: # Info description "Warm the varnish to get the list of products" author "Juanjo Aguilella" # Events start on startup stop on shutdown # Automatically respawn respawn respawn limit 100 5 # Run the script # Note, in this example, if your PHP script …

1
AuthorizedKeysFile行已注释掉,但似乎仍然有效
我正在Linode上设置服务器,并遵循其“ 保护服务器”指南。 他们建议设置ssh密钥对身份验证。我已经将我的公共密钥上传到服务器,并且密钥对身份验证似乎可以正常工作,但是如果在以下行中注释了以下行,它将如何工作sshd_config: #AuthorizedKeysFile %h/.ssh/authorized_keys
13 linux  ubuntu  ssh  ssh-keys 

2
Apache2-301在URL目录末尾缺少“ /”时重定向
我在请求这样的网址时没有真正注意到此Redirect(301),而该网址结尾没有slash(“ /”): http://server/directory 服务器将使用301重定向永久标头和Location标头定位到进行响应http://server/directory/。 请参见以下示例: 用户要求: GET /social HTTP/1.1 ( http://192.168.1.111/social ) Apache服务器响应: HTTP/1.1 301 Moved Permanently Location: http://192.168.1.111/social/ 用户要求: GET /social/ HTTP/1.1 ( http://192.168.1.111/social/ ) Apache服务器响应: HTTP/1.1 200 OK Apache access.log: 192.168.1.130 - - [05/Apr/2014:22:06:47 +0200] "GET /social HTTP/1.1" 301 558 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 …

5
ulimit -n不更改-值limit.conf不起作用
我试图提高ubuntu计算机上所有用户的打开文件描述符最大值。 这个问题是对该问题的后续。 即使需要pam_limits.so,ulimit也不会读取打开文件描述符limits.conf设置 除了我在limits.conf中添加了必需的“ root”条目 这是条目 * soft nofile 100000 * hard nofile 100000 root soft nofile 100000 root hard nofile 100000 与相关的行pam_limits.so已在/etc/pam.d/中的所有相关文件中取消注释,并fs.file-max已在/etc/sysctl.conf中正确设置 但是,我仍然看到 abc@machine-2:/etc/pam.d$ ulimit -n 1024 重新启动后。 可能是什么问题呢? 我的默认外壳程序是/ bin / sh,并且我无法使用chsh更改我的默认外壳程序,因为通过某种分布式身份验证方案对计算机上的用户进行了身份验证。
13 linux  ubuntu  bash  pam  ulimit 

2
Nginx-转发HTTP AUTH-用户?
我对Nginx和Jenkins(Hudson)感到有些麻烦。我正在尝试使用Nginx作为具有HTTP基本身份验证的Jenkins实例的反向代理。 到目前为止,它仍然有效,但是我不知道如何通过身份验证用户名传递标头? location / { auth_basic "Restricted"; auth_basic_user_file /usr/share/nginx/.htpasswd; sendfile off; proxy_pass http://192.168.178.102:8080; proxy_redirect default; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-User $http_authorization; proxy_max_temp_file_size 0; #this is the maximum upload size client_max_body_size 10m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; proxy_buffers 4 32k; …

4
获取后缀以转发root的邮件
我有一台运行postfix的Ubuntu服务器。它不是我的域的邮件服务器。 每当为root运行cron作业时,输出邮件都不会在本地传递,而是通过主邮件服务器发送到root@mydomain.com。这不是我想要的。 我希望将root用户的邮件发送到本地或转发到anothermail@anotherdomain.com。 我曾尝试同时修改~root/.forward和和/etc/aliases(并运行newaliases),但没有任何帮助(我猜这些文件仅在postfix尝试在本地传递邮件时才检查)。 我能做什么? 这是/etc/postfix/main.cf: smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = linux1.mydomain.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = linux1.mydomain.com, localhost.linux1.mydomain.com, localhost relayhost = my.isps.relayhost.com …
13 linux  ubuntu  email  postfix 

4
将Apache限制为一个IP
我有一台具有一堆IP地址的服务器,我只希望Apache监听其中一个。听起来这并不是一件很难的事,而且我之前已经做过一次,但是这次我遇到了一些麻烦。首先,据我了解,这是我现在的位置: Apache在每个地方监听端口80,它只在正确的IP上监听。 /etc/apache2$ grep -R ":80" . ./sites-available/default:<VirtualHost 192.168.0.82:80> ./httpd.conf:<VirtualHost 192.168.0.82:80> ./ports.conf:NameVirtualHost 192.168.0.82:80 ./sites-enabled/000-default:<VirtualHost 192.168.0.82:80> 没有提及收听0.0.0.0。 /etc/apache2$ grep -R "0\.0\.0\.0" . 但是... Apache拒绝启动。 /etc/apache2$ sudo /etc/init.d/apache2 start * Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable …


2
iptables -p全部--dport
iptables的似乎并不承认--dport有-p all。 iptables -A INPUT -p all --dport www -j ACCEPT 产量: iptables v1.4.4: unknown option `--dport' Try `iptables -h' or 'iptables --help' for more information. --destination-port doesn't work either: iptables v1.4.4: unknown option `--destination-port' 为-p tcp和添加两个单独的规则-p udp很好用,为什么它不起作用-p all? 万一有问题,这是在具有iptables软件包版本1.4.4-2ubuntu2的Ubuntu 10.04 LTS服务器上
13 ubuntu  iptables 

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.