V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
BigZ
V2EX  ›  VPS

vps上装lnmp进来看看

  •  
  •   BigZ · 2013 年 1 月 24 日 · 2074 次点击
    这是一个创建于 4742 天前的主题,其中的信息可能已经有所发展或是发生改变。
    执行ss -l

    memcached和mysql的Local Addres是多少

    是*就悲剧了
    13 条回复    1970-01-01 08:00:00 +08:00
    liuxurong
        1
    liuxurong  
       2013 年 1 月 24 日
    为什么?被扫描吗?
    liuxurong
        2
    liuxurong  
       2013 年 1 月 24 日
    mem会被捣乱? mysql 有密码啊...
    xatest
        3
    xatest  
       2013 年 1 月 24 日
    是127.0.0.1,怎么了,数据层不用外部访问吧~
    BigZ
        4
    BigZ  
    OP
       2013 年 1 月 24 日
    mc和mysql的端口不能暴露在公网ip,不然很容易被搞

    我今天偶然发现,lnmp默认安装会悲剧

    修改方法
    http://lutaf.com/115.htm
    liuxurong
        5
    liuxurong  
       2013 年 1 月 24 日
    lnmp只有memcached是默认公网的

    mysql 则不是。
    alexrezit
        6
    alexrezit  
       2013 年 1 月 24 日   ❤️ 1
    不是应该叫做 LEMP 么?
    BigZ
        7
    BigZ  
    OP
       2013 年 1 月 24 日
    liuxurong
        8
    liuxurong  
       2013 年 1 月 24 日
    @BigZ mysql是, LNMP不是啊,外网根本无法访问。
    liuxurong
        9
    liuxurong  
       2013 年 1 月 24 日
    我指的是lnmp.org那个包。
    BigZ
        10
    BigZ  
    OP
       2013 年 1 月 24 日
    @liuxurong 我也是用lnmp装的
    lnmp的脚本我检查了,它是用的my-medium.cnf修改的,没有任何修改bind address的行为

    cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
    sNullp
        11
    sNullp  
       2013 年 1 月 24 日
    从来不用一键安装包,以及使用iptables封端口的飘过。。
    nichan
        12
    nichan  
       2013 年 1 月 24 日
    @alexrezit LEMP+1,LNMP是国人自己的叫法
    solf
        13
    solf  
       2013 年 1 月 24 日
    LEMP+1
    试试自己编译安装
    我是用iptable,对自家ip外其他ip只打开80和443端口
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   876 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:07 · PVG 06:07 · LAX 14:07 · JFK 17:07
    ♥ Do have faith in what you're doing.