美文网首页
nigix 软件安装配置问题

nigix 软件安装配置问题

作者: dons_1 | 来源:发表于2019-04-19 11:14 被阅读0次

首先通过apt-get install 安装

1、找到nigix安装位置? 

网上都没点到位 一句whereis  就搞定

2、运行文件竟然是动态库文件?

bin系列目录是存放命令的、、二进制文件 vim打开 乱码

在/usr/sbin 目录存放非系统用的命令

可以用./命令执行

3、如何查看是否运行

ps aux|grep nginx

ps—查看当前进程的琴况  aux选项  一个用户的所有进程(bsd语句)

                                            ef选项 所有进程(标准语句   )

4、配置

-c filename : set configuration file (default:  /etc/nginx/nginx.conf) 默认位置

新建vhost文件夹

打开nginx.conf

添加了include vhsot/*.conf

5、修改了/etc/hosts

添加了127.0.0.1 imall 

6、添加了 在vhost里添加了 www.imall.com.conf

找不到access.log 在 /var/log/nginx

7. nginx.conf 报错的解决

阿里云centOS7.4 nginx: [emerg] "server" directive is not allowed here in /etc/nginx/vhost/xxxxxx.conf:2

http://www.mamicode.com/info-detail-2304934.html

解决思路http://www.mamicode.com/info-detail-2304934.html

相关文章

网友评论

      本文标题:nigix 软件安装配置问题

      本文链接:https://www.haomeiwen.com/subject/yecqgqtx.html