/
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