设为首页 加入收藏

TOP

原创:LNMP架构部署个人博客网站 禁止转载复制(二)
2017-10-13 10:37:15 】 浏览:6943
Tags:原创 LNMP 架构 部署 个人 博客 网站 禁止 转载 复制
/

           ln -s /application/nginx-1.10.2  /application/nginx                                  <--- 安装完成一个软件要做一个软链接

        b. 启动nginx软件程序进行测试

           /application/nginx/sbin/nginx

           lsof -i:80

netstat -lntup|grep 80    查看80端口

           浏览器访问 10.0.0.8:80

           至此软件安装完毕:

04:

    ③. nginx软件使用过程中疑难杂症(参考教案说明)

        · Nginx启动的疑难杂症汇总

 

    ④. nginx软件排查问题三部曲说明

         a 在客户端上ping服务器端IP,检查链路是否通畅

              b 在客户端上telnet服务器端IP、端口,检查链路访问是否通畅

              c 在客户端上wget检测模拟页面访问是否正常

 

## nginx命令说明

# nginx 启动方法

[root@web01 application]# /application/nginx/sbin/nginx

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] still could not bind()

[root@web01 application]#

 

# nginx 停止方法

[root@web01 application]# /application/nginx/sbin/nginx -s stop

[root@web01 application]# ps -ef|grep nginx

root       4283   1773  0 21:52 pts/0    00:00:00 grep --color=auto nginx

[root@web01 application]# netstat -lntup|grep 80

[root@web01 application]# /application/nginx/sbin/nginx

[root@web01 application]#

 

# nginx 重启方法(平滑)

[root@web01 application]# /application/nginx/sbin/nginx -s reload

 

# nginx 配置文件语法检查

[root@web01 application]# /application/nginx/sbin/nginx -t

nginx: the configuration file /application/nginx-1.10.3/conf/nginx.conf syntax is ok

nginx: configuration file /application/nginx-1.10.3/conf/nginx.conf test is successful

 

mysql软件

    mysql软件下载地址信息: www.mysql.com   mirrors.sohu.com

    mysql软件下载完毕后,查看mysql解压后目录文件大小

    讲解安装mysql步骤

      1) 下载解压mysql二进制软件包

             tar xf mysql-5.6.34-linux-glibc2.5-x86_64.tar.gz

        #解压数据库压缩包

    2) 添加mysql程序运行时的管理用户

        useradd -s /sbin/nologin  -M mysql

        #创建虚拟用户

    3) 将mysql解压后的程序包搬家到程序目录下,并进行重命名

        mkdir -p /application/

  &nbs

首页 上一页 1 2 3 4 5 6 7 下一页 尾页 2/11/11
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇SSH服务端配置、优化加速、安全防.. 下一篇RHEL下SendMail修改发邮箱地址

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目