Articles of ubuntu 14.04

我的帐户页面上的Redmine 500内部服务器错误

我用这个方法来安装redmine 我在/opt/redmine安装了redmine,并且在/opt/redmine/current/log/production.log检查了我的日志 我最近从2.5.2.stable.13345升级到2.5.3.stable.14266 My install info. Environment: Redmine version 2.5.3.stable.14266 Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux] Rails version 3.2.19 Environment production Database adapter Mysql2 SCM: Subversion 1.8.8 Git 1.9.1 Filesystem Redmine plugins: redmine_agile 1.3.2 redmine_graphs 0.1.0 sidebar_hide 0.0.7 我的生产日志的尾巴 Completed 500 Internal Server Error in 42.6ms ActionView::Template::Error (cannot load such file — tzinfo/definitions/Europe/London): 1: <%= labelled_fields_for […]

ubuntu ftp 500 OOPS:prctl PR_SET_SECCOMP失败

我刚刚在我的Ubuntu 14服务器上安装了vsftp。 我已经使用sudo apt-get install命令安装了vsftp。 然后重新启动FTP服务器,但它拒绝所有连接这个错误500 OOPS: prctl PR_SET_SECCOMP failed请看看这里。 aysael@srv:~$ sudo ftp ftp> open 127.0.0.1 Connected to 127.0.0.1. 500 OOPS: prctl PR_SET_SECCOMP failed 这是我的configuration文件/etc/vsftpd.conf seccomp_sandbox=no listen=YES # Allow anonymous FTP? (Disabled by default) anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form […]

FastCGI:只有一个特定的文件“通信服务器中止:读取失败”

相关问题: FastCGI和Apache 500错误间歇性 该解决scheme不适合我。 问题: 我有一台Laravel 5.1应用程序(在其他服务器上生产,没有任何问题),运行在新的Ubuntu 14.04服务器上,使用Apache 2.4.7和PHP,通过PHP-FPM运行 。 只要在应用程序中不调用某个文件,一切工作正常: $compiledPath = __DIR__.'/cache/compiled.php'; if (file_exists($compiledPath)) { require $compiledPath; // this causes a "500 Internal Server Error" } 这是一个由框架自动创build的Laravel特定文件,用于加快速度(所以这不是我的代码中的错误),它确实存在,我有完全的访问权限。 它的大小约为600kB 。 当我删除它,一切工作正常。 但是,当我告诉Laravel再次创build它,然后点击应用程序的任何path时,出现以下日志条目的“500内部服务器错误”: [fastcgi:error] [pid 14334](104)通过peer重置连接:[client xxx.xxx.xxx.xxx:41395] FastCGI:与服务器通信“/ var / www / clients / client1 / web1 / cgi-bin / php5-fcgi-yyy.yyy.yyy.yyy-80-domain.com“中止:读取失败 [fastcgi:error] [pid 14334] [client […]

Ubuntu netboot安装崩溃

我有一台运行PXE的DHCP服务器,并且需要通过PXE安装Ubuntu。 我设法让安装程序工作。 它在kickstart文件的帮助下完成安装,但突然停止在“安装系统”,并说它遇到了错误。 我不知道是什么原因造成的,或者如何解决这个问题。 任何帮助? 错误是这个generics失败,那不给我任何东西继续: [!!] Install the system Installation step failed an installation step failed. you can try to run the failing item again from the menu, for skip it and choose something else. the failing step is: Install the system 我的kickstart文件如下所示: #Generated by Kickstart Configurator #platform=x86 #System language lang en_US #Language modules […]

Ubuntu的服务器 – configurationBIND9和Apache服务的域名和子域名

首先,让我为一个可能模糊的问题道歉。 我需要一些关于如何configuration下面描述的设置的指针。 我没有要求完成configuration文件,但我没有把它拼在一起。 build立 几台电脑连接到路由器。 服务器(Ubuntu服务器LTS 14.04)连接到路由器。 路由器连接到互联网。 公司网站在其他地方举办 – example.com 在本地服务器上托pipe的本地网站git.example.com , issues.example.com 目前 我在想,我可以设置路由器使用服务器作为主DNS。 服务器正在运行Bind9并将子域( git.example.com和issues.example.com )parsing为服务器的静态IP。 Apache服务器的内容。 Bind9不parsingexample.com ,所以路由器使用辅助DNS(或Bind9可以redirect到另一个DNS服务器)。 到目前为止,我可以configuration设置,以便访问example.com/git和example.com/issues ,但是我无法访问example.com 。 所以,我的问题是:我如何configurationBind9来解决git.example.com但不是example.com ,如何configurationApache以不同的方式(例如,另一个文档根?) issues.example.com从issues.example.com ? 如果Bind9和Apache如何相互关联? 希望这是有道理的,我最近开始了这个整个服务器的事情,只有对networking的基本理论的理解。 🙂 编辑 :要清楚; git.example.com和issues.example.com不需要(甚至不应该)从我们的networking外部访问。 编辑2 :添加图片。

使用OpenVPN社区(免费)版本的物理密码令牌

我目前正在设置OpenVPN,以提供公司访问多个客户端。 我们的要求是使用证书,密码保护客户端密钥,以及使用双因素(MFA)validation每个客户端。 我使用了一堆Fortinet FortiToken 200令牌,但是我找不到任何显示如何使用OpenVPN这些令牌的信息。 看了更多,我找不到任何信息显示如何使用OpenVPN物理令牌。 所以我的问题是,我如何使用OpenVPN物理令牌? 我不能使用Google身份validation器之类的东西,因为我们计划通过他们的智能手机让客户端使用VPN。 OpenVPN PKCS#11的方法文档写得很差。 我开始相信,如果MFA是一个需求,OpenVPN在这个时候根本不是一个可行的select。 谢谢你的帮助。

如何解决简单的HAProxy日志

我正在运行Ubuntu 14.04,我想知道如何loggingHAProxy中发生的所有事情。 我一直在阅读关于日志和chroot的问题。 一切都告诉我在不同的文件中写不同的东西。 /var/log# ls alternatives.log apt bootstrap.log btmp dmesg dpkg.log faillog fsck lastlog upstart wtmp /etc/rsyslog.d# ls 49-haproxy.conf 50-default.conf 我的/etc/haproxy/haproxy.cfg文件包含这个: global log 127.0.0.1 local0 maxconn 2048 tune.ssl.default-dh-param 2048 stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy defaults log global mode http option httplog option dontlognull retries 3 […]

我的nginx反向代理configuration有什么问题,单服务器(以及更多)

我试图让nginx反向代理设置工作。 我有两个Web服务器设置,一个与Nginx,一个与Apache2。 我目前无法使用nginx服务器,所以这就是我现在正在尝试的所有,但我补充说,我最终尝试两个,以防万一,影响设置。 我有四台机器在这个设置。 1.客户机 192.168.0.5 Ubuntu 14.04桌面 2.反向代理服务器 192.168.0.10 nginx 1.4.6 Ubuntu 14.04服务器 3.服务器1 192.168.0.15 server1.mydomain.com nginx 1.4.6 Ubuntu 14.04服务器 4.服务器2 192.168.0.20 server2.mydomain.com 的Apache2 Ubuntu 14.04服务器 在我的客户端机器上,我已经将我的主机文件设置为指向每个Web服务器的反向代理服务器,如下所示 / etc / hosts在客户端192.168.0.5上127.0.0.1 localhost 192.168.0.10 server1.mydomain.com 192.168.0.10 server2.mydomain.com 我有SSL1和SERVER2的SSL证书,我把它放在反向代理服务器(192.168.0.10)。 我们将其称为server1.crt,server1.key和server2.crt,server2.key。 我相信我必须使用这样的证书进行设置: client(192.168.0.5) —https—> reverseProxy(192.168.0.10 holds ssl certs) —http—> server1 or server2 我现在有两台服务器,http,我只需要修复192.168.0.10上的nginx反向代理设置。 这是我试过的东西,但它不正确的redirect。 再次,我想要一个https连接到反向代理服务器,然后在反向代理和服务器之间build立一个http连接。 /etc/nginx/nginx.conf user […]

Postfix,为托pipe网站设置SMTP

我有一个VPS托pipe不同的域,我试图设置SMTP与后缀,所以用户可以通过SMTP地址发送电子邮件,如: [email protected] [email protected] [email protected] 我设法configurationtsl,sasl等,但我找不到如何configurationsmtp帐户…我可以find所有的指南使用UNIX用户login,这不是我正在寻找… 要接收邮件,我正在使用virtual_alias_maps将传入的邮件转发到相应的所有者邮箱。

为Postgres获取太多打开文件错误

在一个JAVA应用程序的Ubuntu 14.04服务器上,我们得到Postgres太多的Open文件错误(使用Postgresql 9.5)。 我们在/etc/security/limits.conf中设置以下内容 * soft nofile 16384 * hard nofile 16384 root soft nofile 16384 root hard nofile 16384 postgres soft nofile 16384 postgres hard nofile 16384 还要在/etc/sysctl.conf中设置以下内容 kern.maxfiles=20480 kern.maxfilesperproc=18000 另外请以Postgres用户身份运行时查看以下结果: -> ulimit -Hn 16384 -> ulimit -Sn 16384 -> cat /proc/sys/fs/file-max 100268 在重新启动服务器并检查Postgres 100268的ulimit。但在检查postgres进程下的打开文件的限制仍然是1024和4096 # cat /proc/1072/limits Max open files 1024 4096 files […]