Articles of Ubuntu

/ etc / nginx / sites-enabled / defaul中的“ssl_certificate_key”指令中的参数个数无效

我有我的EV SSL证书。 我正在关注如何在Ubuntu上使用NGINX的证书 当我尝试重新启动我的nginx时,我得到: **invalid number of arguments in "ssl_certificate_key" directive in /etc/nginx/sites-enabled/default 我到目前为止做了什么: sudo nano /etc/nginx/sites-enabled/default upstream app { # Path to Unicorn SOCK file, as defined previously server unix:/home/zhall/zoulfia/shared/sockets/unicorn.sock fail_timeout=0; } server { listen 80; server_name moneytree.space www.moneytree.space " " 178.62.19.65; rewrite ^/(.*) https://moneytree.space/$1 permanent; } # HTTPS server server { listen 443; […]

WordPress的插件安装 – 无法连接到FTP服务器 – 最安全的解决scheme?

我用Wordpress成功地build立了一个VPS LEMP栈。 当我试图从WP后端安装插件时,系统提示以下消息: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host. 当我input我正在使用FileZilla访问服务器的SFTP帐户详细信息时,出现以下错误消息: Failed to connect to FTP Server 192.XXX.XXX.X:21 我阅读了各种 教程 ,其中build议安装一个FTP服务器,特别是vsftpd ,然后将您的FTP用户详细信息存储在wp-config.php中,以避免进一步的身份validation请求。 我看到的问题是,FTP被认为是严重不安全 ,我想避免硬编码我的用户的详细信息到我的WP安装。 处理这个问题的最安全和推荐的方法是什么?

Python多处理池在Ubuntu服务器上挂起

我使用nginx和gunicorn在Ubuntu服务器上运行Django。 我试图做一些多处理,这是在我的本地机器上工作,但挂起,直到gunicorn工时超时在我的服务器上。 cpu_count = int(multiprocessing.cpu_count()) pool = Pool(processes = cpu_count) result = pool.map_async(apiSimulAvail, rate_ranges) result.wait() …do some more stuff once all processes return 它挂在pool = Pool(processes = cpu_count) 。 我没有得到任何的错误,gunicorn工人只是超时,重新启动。 任何迹象表明,为什么会发生这种情况和/或我如何解决这个问题,我们将不胜感激。 谢谢。

服务器恢复后的502错误网关Nginx

所以我有一个Ubuntu服务器,我试图从备份中恢复。 而当一个虚拟的PHP版本页面,我得到502错误的网关。 我有什么试图解决它? 包括从这个相关的问题的答案 – nginx 502坏的网关很多东西 这是我使用Ubuntu的默认configuration server { listen 80; # listen [::]:81 ipv6only=on default_server; root /var/www/html; index index.php index.html index.htm; server_name localhost; location ~* \.(js|css|png|jpg|jpeg|gif|ico|html)$ { expires max; } location / { try_files $uri $uri.php $uri.php/$args /index.php?q=$uri&$args $uri/ =404; index index.php index.html index.htm; rewrite ^(.*)$ /$1.php; } location /phpmyadmin { index index.php; […]

nginx php5-fpm失败(2:没有这样的文件或目录)

问题:我错过了什么或错在哪里? 我正在尝试将function齐全的Zend Framework应用程序从mod_php5的Apache2迁移到php5-fpm的nginx。 我得到这样的错误: 2012/06/27 12:08:04 [error] 1986#0: *1 open() "/var/www/public/sales/live-trials-json" failed (2: No such file or directory), client: *.*.*.*, server: www.mydomain.com, request: "POST /sales/live-trials-json HTTP/1.1", host: "www.mydomain.com", referrer: "https://www.mydomain.com/sales/live-trials" 这是我的configuration文件: a)/ etc / nginx / sites-enabled / www server { listen 80; listen 443 default ssl; server_name www.mydomain.com; root /var/www/public; ssl_certificate /etc/nginx/ssl/mydomain.crt; ssl_certificate_key /etc/nginx/ssl/mydomain.key; […]

如何validationnginx是否在运行?

在我的本地机器上运行ASP.NET vNext项目后 ,我试图弄清楚如何在nginx上运行它,因为它看起来是一个推荐的select 在jsinh的 博客 ,我安装它使用: sudo apt-get update sudo apt-get install nginx -y 我试图通过使用以下内容来了解​​它是否工作: ifconfig eth0 | grep inet | awk '{ print $2}' 运行后 sudo service nginx start sudo service nginx stop 但是,输出总是一样的: 如何validationnginx是否在运行?

Nginx守护进程停止失败

我已经安装了nginx 1.0.11的Ubuntu 11.04 i386服务器。 另外,我正在使用这个init.d脚本 ,这是我在几个不同的地方find的唯一一个脚本 。 它很好地启动服务器,但是,停止/重置它说 * Stopping Nginx Server… [fail] 当然,守护程序不会停止,重新启动时不会重新加载configuration。 我该如何修复?

独angular兽nginx上游服务器无法启动

我的独angular兽服务器运行良好,但已停止工作,我无法弄清楚如何让它重新启动。 2011/04/18 15:23:42 [error] 11907#0:* 4连接()到unix:/tmp/sockets/unicorn.sock失败(111:连接被拒绝)连接上游时,客户端:71.131.237.122 ,server:localhost,request:“GET / HTTP / 1.1”,上游:“http:// unix:/tmp/sockets/unicorn.sock:/”,主机:“tacitus” 我的configuration文件在: https : //gist.github.com/926006 任何帮助,以我的故障排除选项应该将不胜感激。 最好, 蒂姆

在nginx中取得404静态文件失败

我现在在Ubuntu 12上用nginx和gunicorn部署一个django应用程序。 我configurationnginx虚拟主机文件如下: server { listen 80; server_name mydomain.com; access_log /var/log/nginx/gunicorn.log; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /static/ { root /var/www/django/ecerp/erp/static/; } } 我可以很好地请求Django,但是当请求一个静态文件时,它以404状态响应。 我确定静态文件的根path是正确的。 谁能帮忙?

GD库扩展不适用于这个PHP安装Ubuntu Nginx

我在我的ubuntu 14.04服务器和nginxnetworking服务器上使用laravel web框架,当我尝试使用laravel上传文件到服务器时出现此错误。 我的上传目录是在public/uploads文件夹有777权限。