VPS侦探论坛

 找回密码
 注册
查看: 6600|回复: 11

军哥,LNMPA究竟怎么使用呢?

[复制链接]
发表于 2016-1-23 15:32:30 | 显示全部楼层 |阅读模式

我看Apache 的端口是 88 nginx是80
由于我的服务器商是封了端口的,除了Web常用端口 其他端口都能用
然后我不知道究竟怎么利用 LNMPA 的优势 = = 军哥能教一下,讲解一下嘛?

[ 本帖最后由 872517414 于 2016-1-23 15:37 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-1-23 15:44:49 | 显示全部楼层


然后我发现= = 我改了两个端口 还是不能访问,这究竟是为啥 AWS EC2
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-1-23 20:04:58 | 显示全部楼层

88不用管这个

aws应该是有防火墙,看看防火墙设置
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-1-30 20:44:11 | 显示全部楼层

回复 3# 的帖子




防火墙是空的 = = 是aws封了这几个端口,因为要备案,但服务器我只是用来作为下载文件的 所以我想试试能不能改端口访问下载,但是改完端口还是不能访问
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-1-31 08:51:37 | 显示全部楼层

回复 4# 的帖子


只改nginx其他不用动,修改重启nginx生效

aws防火墙不是系统防火墙,目前没用过cn版的不清楚是否和us版的有区别,us版是有防火墙的。如被屏蔽端口要联系他们客服确认看看

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2016-2-1 22:31:02 | 显示全部楼层

回复 5# 的帖子


CN版目前只给企业用,朋友有背景给我一台的使用权,但是网络端口因为 说要aws域名专属备案后才能开启常用的网络端口。至于什么情况我现在也找不到那句话了-_-||
 楼主| 发表于 2016-2-2 21:51:51 | 显示全部楼层

回复 5# 的帖子


军哥我把Nginx的端口换了,果然可以打开了,但是现在又遇到一个问题,就是我想把服务器当作一个文件服务器,也就是可以访问某个目录的
我给nginx的配置添加了以下代码
autoindex on;            
autoindex_exact_size off;
autoindex_localtime on
然后看了一下 httpd.conf
看到也可以
<Directory "/home/wwwroot/default">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

但访问就还是
403 Forbidden
You don't have permission to access / on this server.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-2-3 14:39:26 | 显示全部楼层

目录浏览直接在nginx上设置,lnmpa下在apache下设置目录浏览太麻烦
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-2-3 17:20:41 | 显示全部楼层

回复 8# 的帖子


就是设置了,但是返回的是Apache接口.........
http://www.mikuchina.com:999/p.php
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-2-3 19:10:55 | 显示全部楼层



原帖由 872517414 于 2016-2-3 17:20 发表
就是设置了,但是返回的是Apache接口.........
http://www.mikuchina.com:999/p.php

然后现在又有问题出现了
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


MySQL貌似挂了
service mysql start
显示  * The server quit without updating PID file (/var/run/mysqld/mysqld.pid).
发表于 2016-2-3 19:42:11 | 显示全部楼层

回复 9# 的帖子


lnmpa下php肯定是apache处理
 楼主| 发表于 2016-2-3 20:28:18 | 显示全部楼层

回复 11# 的帖子


所以 我在nginx设置开启目录浏览 但返回的是Apache= =
http://www.mikuchina.com:999/csgo/
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 21:29 , Processed in 0.028670 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表