您的位置:首页 > 其它

2017最新鑫众游戏大厅源码架设和全套手机版运营级别源码下载

2018-03-10 10:05 441 查看
一. 源码包编译安装部署web服务器1.安装nginx必须的依赖包[root@test01 ~]# yum -y install gcc openssl-devel pcre-devel zlib-devel2.安装编译nginx,目前系统测试环境为CentOS6.3 软件版本为nginx-1.2.6[root@test01 ~]# useradd nginx -s /sbin/nologin[root@test01 ~]# tar zxvf nginx-1.2.6.tar.gz [root@test01 ~]# cd nginx-1.2.6 [root@test01 nginx-1.2.6]# ./configure --user=nginx --group=nginx --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-http_ssl_module  // --with-http_stub_status_module 安装允许状态模块// --with-http_ssl_module 安装ssl模块[root@test01 ~]# /usr/local/nginx/sbin/nginx -v //查看Nginx的相关环境配置信息是否正确nginx version: nginx/1.2.6[root@test01 ~]#[root@test01 nginx-1.2.6]# make & make install   //编译安装过程略 3.通过nginx自身脚本机器nginx服务器,并通过各种命令查看是否启动成功[root@test01 ~]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf   // -c指向nginx主配置文件[root@test01 ~]# lsof -i :80 //查看nginx进程号及运行情况COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAMEnginx   21910 root    9u IPv4 262148      0t0 TCP *:http (LISTEN)nginx   21911 nginx    9u IPv4 262148      0t0 TCP *:http (LISTEN)[root@test01 ~]# ps -ef | grep nginx //查看nginx进程号及运行情况root     21910     1 0 10:41 ?        00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confnginx    21911 21910 0 10:41 ?        00:00:00 nginx: worker process          root     21957 21755 0 10:42 pts/0    00:00:00 grep nginx[root@test01 ~]# netstat -nltp | grep 80 //查看nginx进程监听端口[root@test01 ~]# netstat -an |grep 80tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN4.通过windows服务器IE浏览器测试


2017最新鑫众游戏大厅源码架设和全套手机版运营级别源码下载:http://aqiulian.com/thread-91-1-1.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐