Notice (8): file_put_contents(): Write of 272 bytes failed with errno=28 No space left on device [CORE/src/Log/Engine/FileLog.php, line 140]

Notice: file_put_contents() [function.file-put-contents]: Write of 1108 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8): unserialize() [<a href='https://secure.php.net/function.unserialize'>function.unserialize</a>]: Error at offset 4079 of 4085 bytes [APP/Controller/NewsController.php, line 5571]

Notice: file_put_contents() [function.file-put-contents]: Write of 2752 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Undefined array key "nsort" [APP/Controller/NewsController.php, line 3613]

Notice: file_put_contents() [function.file-put-contents]: Write of 2068 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Trying to access array offset on value of type null [APP/Controller/NewsController.php, line 3613]

Notice: file_put_contents() [function.file-put-contents]: Write of 2092 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Undefined array key "nsort" [APP/Controller/NewsController.php, line 3613]

Notice: file_put_contents() [function.file-put-contents]: Write of 2068 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Trying to access array offset on value of type null [APP/Controller/NewsController.php, line 3613]

Notice: file_put_contents() [function.file-put-contents]: Write of 2092 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8): unserialize() [<a href='https://secure.php.net/function.unserialize'>function.unserialize</a>]: Error at offset 4079 of 4085 bytes [APP/Controller/NewsController.php, line 5571]

Notice: file_put_contents() [function.file-put-contents]: Write of 2752 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8): SplFileObject::fwrite() [<a href='https://secure.php.net/splfileobject.fwrite'>splfileobject.fwrite</a>]: Write of 20007 bytes failed with errno=28 No space left on device [CORE/src/Cache/Engine/FileEngine.php, line 141]

Notice: file_put_contents() [function.file-put-contents]: Write of 2787 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (512): 1hours cache was unable to write '19031c1580687362cbd7a9ac042a7bd2' to Cake\Cache\Engine\FileEngine cache [CORE/src/Cache/Cache.php, line 275]

Notice: file_put_contents() [function.file-put-contents]: Write of 2582 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8): unserialize() [<a href='https://secure.php.net/function.unserialize'>function.unserialize</a>]: Error at offset 4067 of 4085 bytes [APP/Controller/NewsController.php, line 5571]

Notice: file_put_contents() [function.file-put-contents]: Write of 2482 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Centos6.2_(64位)服务器环境配置:源码编译Nginx - 站长搜索
首页 > 资讯列表 > 服务器 >>

Centos6.2_(64位)服务器环境配置:源码编译Nginx

Warning (2): Undefined array key "nsort" [ROOT/plugins/Kuhuang/templates/Websites/view.php, line 430]
Notice: file_put_contents() [function.file-put-contents]: Write of 2416 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Trying to access array offset on value of type null [ROOT/plugins/Kuhuang/templates/Websites/view.php, line 430]

Notice: file_put_contents() [function.file-put-contents]: Write of 2440 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
">
Warning (2): Undefined array key "nsort" [ROOT/plugins/Kuhuang/templates/Websites/view.php, line 430]

Notice: file_put_contents() [function.file-put-contents]: Write of 2416 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2): Trying to access array offset on value of type null [ROOT/plugins/Kuhuang/templates/Websites/view.php, line 430]

Notice: file_put_contents() [function.file-put-contents]: Write of 2440 bytes failed with errno=28 No space left on device in /www/wwwroot/www.adminso.com/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
2014-07-17 16:58:34 转载来源: 网络整理/侵权必删

上一回讲到配置环境的一些前期工作,以及编译安装Mysql5.3,如果不想错过任何细节,请阅读《(Centos6.2_64位)服务器环境配置:源码编译Mysql》一文。今天趁下班前的一点空余时间,接着把Nginx部分也写写

上一回讲到配置环境的一些前期工作,以及编译安装Mysql5.3,如果不想错过任何细节,请阅读《(Centos6.2_64位服务器环境配置:源码编译Mysql》一文。

今天趁下班前的一点空余时间,接着把Nginx部分也写写。

还 记得上一篇的一些约定吧:存放下载安装包的位置是/setup,目标软件都指定安装目录:/apps。由于Nginx可以使用正则表达式来匹配访问路径, 要正常使用此功能就保证安装有Pcre库,如果你已经接着上一篇操作过来,就可以不用考虑这一点,因为此库已经在安装列表里加入。现在可以重温下这段命 令,它一次过就把所需要的库都安装了。

#yum install gcc gcc-c++ gcc-g77 pcre-devel openssl-devel bison autoconf automake make cmake libcurl-devel gd-devel zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*

以 上命令可以大胆执行,如果已经安装的库会就会自动跳过,也不会对系统产生副 作用。如果的Nginx作用可大了,不仅可以做功能强大的反向代理服务器,还加入了对视频拖动的支持,如:FLV、MP4等主流网络视频格式,如果利用 Nginx用简单的视频服务器,就要根据情况加入相关的编译参数,下方会简单说到,或者我会单独针对Nginx配置成视频服务器再写一篇相关文章。

其它不多说了,下面开始转入正题。所有操作为Shell窗口进行,以#号开始,//为中文注释,执行的时候不要。

#cd /setup

#wgethttp://nginx.org/download/nginx-1.2.8.tar.gz //Nginx官网目前最新的稳定版本是1.2.8

#groupadd www //为了确保系统安全,新建Nginx的专门执行用户,现在咱们就用www分别建立用户组和对应同名用户

# useradd -g www -s /sbin/nologin -M www //创建名为www的用户并加入到www的用户组,并且禁止该用户登录shell

#tar zxf nginx-1.2.8.tar.gz //解压文件,之后会自动生成nginx-1.2.8目录

#cd nginx-1.2.8

# ./configure --prefix=/apps/nginx --user=www --group=www --with-http_stub_status_module --with-pcre --with-http_ssl_module --with-http_realip_module --with-sha1-asm //指定了/apps/nginx为安装目录、运行Nginx的用户及用户组,还有几个常用的组件,这个都得根据自己的实际情况而定,我把Nginx状态 监控模块、正则模板、SSL模块等加入,方便后面使用。在这里再提下状态监控模块,可以让管理者轻松获取当前Nginx的运行情况,所以很有必要。当执行 完毕之后,会有以下摘要信息:

Configuration summary

+ using system PCRE library

+ using system OpenSSL library

+ md5: using OpenSSL library

+ sha1: using OpenSSL library

+ using system zlib library

 

nginx path prefix: "/apps/nginx"

nginx binary file: "/apps/nginx/sbin/nginx"

nginx configuration prefix: "/apps/nginx/conf"

nginx configuration file: "/apps/nginx/conf/nginx.conf"

nginx pid file: "/apps/nginx/logs/nginx.pid"

nginx error log file: "/apps/nginx/logs/error.log"

nginx http access log file: "/apps/nginx/logs/access.log"

nginx http client request body temporary files: "client_body_temp"

nginx http proxy temporary files: "proxy_temp"

nginx http fastcgi temporary files: "fastcgi_temp"

nginx http uwsgi temporary files: "uwsgi_temp"

nginx http scgi temporary files: "scgi_temp"

以上信息表明配置成功

# make //根据配置信息执行编译操作,这一步才会生成相关的二进制文件,但是生成的文件还是原来的目录里。

# make install //把所编译生成的文件,根据配置复制到对应的目录,如果没有的目录就会自动创建,完成这一步就算是编译OK了,接着可以测试下Nginx能否成功运行。

#/apps/nginx/sbin/nginx //执行此命令就可以启动Nginx了,只要用浏览器打开http://ip,就可以看到Welcome Nginx的介面。至此Nginx就算安装完成了。但还有另外新问题,中如何让Nginx开机启动呢?这个问题不难解决,写个脚本就行。

1 2 下一页 查看全文

标签: Centos6.2 64位 服务器 环境 配置 源码 编译 Nginx


声明:本文内容来源自网络,文字、图片等素材版权属于原作者,平台转载素材出于传递更多信息,文章内容仅供参考与学习,切勿作为商业目的使用。如果侵害了您的合法权益,请您及时与我们联系,我们会在第一时间进行处理!我们尊重版权,也致力于保护版权,站搜网感谢您的分享!

站长搜索

http://www.adminso.com

Copyright @ 2007~2025 All Rights Reserved.

Powered By 站长搜索

打开手机扫描上面的二维码打开手机版


使用手机软件扫描微信二维码

关注我们可获取更多热点资讯

站长搜索目录系统技术支持