软件最新选项会自动下载nginx
. 但是在安装时它给了我以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/434 kB of archives.
After this operation, 977 kB of additional disk space will be used.
(Reading database ... 291344 files and directories currently installed.)
Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ...
----------------------------------------------------------------------
Thanks for using nginx!
Please find the official documentation for …
Run Code Online (Sandbox Code Playgroud) 我有 Ubuntu 11.10 并安装了 php5-fpm,我想配置 nginx。我想使用 unix 套接字而不是 tcp 套接字,但我找不到
/var/run/php5-fpm.sock
Run Code Online (Sandbox Code Playgroud)
我也看过
/tmp/php5-fpm.sock
Run Code Online (Sandbox Code Playgroud)
php5-fpm.sock 文件在哪里?我也试过
locate php5-fpm.sock
Run Code Online (Sandbox Code Playgroud)
但我找不到任何东西。注意:php5-fpm 正在工作。我已经开始作为服务 http://blog.bigdinosaur.org/wordpress-on-nginx/ http://blog.nas-admin.org/?p=25
欢迎,
目前,我正在尝试根据网站http://projects.unbit.it/uwsgi/wiki/Quickstart 的说明在我的 VPS(Ubuntu 11.10)上安装最新的 uwsgi
pip install uwsgi
Run Code Online (Sandbox Code Playgroud)
在编译期间,我看到一些错误:
...
[gcc -pthread] spooler.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
Complete output from command /usr/bin/python -c "import setuptools;__file__='/etc/apt/sources.list.d/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-joud1I-record/install-record.txt:
running install
In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/i686-linux-gnu/4.6.1/include','/usr/local/include', '/usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed', '/usr/include/i386-linux-gnu', '/usr/include']
Patching "bin_name" to properly install_scripts dir
...
Run Code Online (Sandbox Code Playgroud)
最后我看到:
...
[gcc -pthread] spooler.o …
Run Code Online (Sandbox Code Playgroud) 如何在我的 Ubuntu 12.04 服务器中为 SSL 连接启用 TLS 1.1 和 1.2?我正在使用以下版本的 nginx 和 openssl 库。
$ ./nginx -v
nginx version: nginx/1.2.3
$ openssl version -a
OpenSSL 1.0.1 14 Mar 2012
built on: Tue Jun 4 07:26:06 UTC 2013
platform: debian-amd64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DOPENSSL_NO_TLS1_2_CLIENT -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM …
Run Code Online (Sandbox Code Playgroud) 我在笔记本电脑上安装了全新的 Ubuntu 13.10。像往常一样,我安装了 Web 开发所需的软件包,包括 nginx、php5-fpm、mysql、php5-mysql、php5-mcrypt 和其他一些软件包。
编辑一些配置文件后,这通常有效。
但是今天,从 13.10 开始,出现错误而不是我预期的网页。
Laravel requires the Mcrypt PHP extension.
Run Code Online (Sandbox Code Playgroud)
软件包 php5-mcrypt 已安装并重新安装。
该命令php -m
似乎没有显示 mcrypt。
知道问题可能来自哪里吗?我已经做了很多次这个设置,它总是有效。
我浏览了一个教程http://craiccomputing.blogspot.com/2010/10/passenger-3-nginx-and-rvm-on-mac-os-x.html,一切正常。没有错误。
Nginx with Passenger support was successfully installed.
The Nginx configuration file (/opt/nginx/conf/nginx.conf)
must contain the correct configuration options in order for Phusion Passenger
to function correctly.
This installer has already modified the configuration file for you! The
following configuration snippet was inserted:
http {
...
passenger_root /home/alex/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.14;
passenger_ruby /home/alex/.rvm/wrappers/ruby-1.9.3-p194/ruby;
...
}
After you start Nginx, you are ready to deploy any number of Ruby on Rails
applications on Nginx.
Run Code Online (Sandbox Code Playgroud)
但是我无法启动它。
alex@ubuntu:~$ sh -x /etc/init.d/nginx start
sh: 0: …
Run Code Online (Sandbox Code Playgroud) 我一直在敲我的头2天了。问题是index.php
下载而不是处理。我正在使用Ubuntu 14.04
, Nginx
, php5
。该nginx/site-available/default
如下所示。我已经index.php
按照许多帖子的规定添加了条目。
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
# Only for nginx-naxsi used …
Run Code Online (Sandbox Code Playgroud) 所以我正在使用数字海洋和 nginx。我想托管多个网站(我的项目),但不想为每个网站购买一个域。
有没有办法在使用一个 ip 访问它们的同时在 nginx 和数字海洋上托管多个网站?
这是我的场景:
Apache 在启用 SSL 并在端口 443 上安装证书的情况下完美运行。
我也想在同一台机器上安装 nginx。作为功能性反向代理和端口 81 或 8443 上的服务器(使用与 apache 相同的证书)
我发现了很多解决方案,将 nginx 作为主服务器,将 apache 作为辅助服务器。我不想弄乱我现有的 apache 配置,所以 nginx 对我来说是次要的。
我正在尝试设置新安装的 Ubuntu (12.04) 服务器,但无法通过 php-fpm 运行 PHP 文件。无论我做什么,我总是收到“拒绝访问”的消息。页面(纯文本,不是 html 或任何东西)。
安装的软件包:
nginx
nginx-common
nginx-full
php5
php5-cli
php5-common
php5-fpm
Run Code Online (Sandbox Code Playgroud)
配置详情:
PHP-FPM:
user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
Run Code Online (Sandbox Code Playgroud)
nginx:
user www-data;
worker_processes 3;
events { worker_connections 1024; }
Run Code Online (Sandbox Code Playgroud)
默认/测试域:
server {
listen 80;
server_name localhost;
root /extra/htdocs/default;
index index.html index.php
access_log /extra/logs/default/access.log;
error_log /extra/logs/default/error.log;
location / {
try_files $uri $uri/ /index.html;
}
location ~ \.php
{
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED …
Run Code Online (Sandbox Code Playgroud)