lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)

工具422535阅读模式

这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa(Linux、Nginx/Tengine/OpenResty、MySQL/MariaDB/Percona、PHP),适用于CentOS 6~8(包括redhat)、Debian 6~10、Ubuntu 12~20的32位和64位。

QQ群

  • 群7: 262601796(新)
  • 群6: 535783209(满)
  • 群5: 556824757(满)
  • 群4: 213014293
  • 群3: 486321919
  • 群2: 438311066
  • 群1: 235258658

安装步骤

  1. yum -y install wget screen #for CentOS/Redhat
  2. # apt-get -y install wget screen #for Debian/Ubuntu
  3. wget http://mirrors.linuxeye.com/lnmp-full.tar.gz
  4. # 或者wget https://www.dropbox.com/s/iampc7prd9y7cqf/oneinstack-full.tar.gz
  5. tar xzf lnmp-full.tar.gz
  6. #tar xzf lnmp.tar.gz
  7. cd lnmp # 如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件
  8. screen -S lnmp # 如果网路出现中断,可以执行命令`screen -R lnmp`重新连接安装窗口
  9. ./install.sh
lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)-图片1

如何添加虚拟主机?

  1. ~/lnmp/vhost.sh
lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)-图片1

如何删除虚拟主机?

  1. ~/lnmp/vhost.sh --del
lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)-图片1

如何管理ftp账号?

  1. ~/lnmp/pureftpd_vhost.sh
lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)-图片1

数据备份

  1. ~/lnmp/backup_setup.sh # 备份参数设置
  2. ~/lnmp/backup.sh # 立即执行备份
  3. crontab -e # 可添加到计划任务,如每天凌晨1点自动备份
  4. 0 1 * * * cd ~/lnmp/backup.sh  > /dev/null 2>&1 &

备份参数设置如下图:

如何管理服务?

Nginx/Tengine/OpenResty:

  1. service nginx {start|stop|status|restart|reload|configtest}

MySQL/MariaDB/Percona:

  1. service mysqld {start|stop|restart|reload|status}

PHP:

  1. service php-fpm {start|stop|restart|reload|status}

Apache:

  1. service httpd {start|restart|stop}

Pure-Ftpd:

  1. service pureftpd {start|stop|restart|status}

Redis:

  1. service redis-server {start|stop|status|restart|reload}

Memcached:

  1. service memcached {start|stop|status|restart|reload}

如何更新版本?

  1. ~/lnmp/upgrade.sh
lnmp、lamp、lnmpa一键安装包(Updated: 2022-03-14)-图片2

跨大版本升级(如php):http://oneinstack.com/question/oneinstack-downgrade-if-php-version/

如何卸载?

  1. ~/lnmp/uninstall.sh

如何重装?

  1. ~/lnmp/uninstall.sh # 请先备份数据好数据后再卸载,丢失数据概不负责
  2. ~/lnmp/install.sh # 再次安装

更新日志

  1. 2019-02-17 V2.0版本发布,更多参考:https://oneinstack.com/changelog/
  2. 2018-03-18 新增阿里云COS、腾讯云COS备份;启用acme.sh支持通配符,禁用certbot;常规软件版本更新
  3. 2017-12-17 新增PostgreSQL、MongoDB、PHP7.2;Apache升级功能; 新增xdebug扩展;新增oneinstack更新;优化vhost.sh
  4. 2017-08-13 iptables可选; 新增pathinfo
  5. 2017-07-01 支持Debian9;PHP编译使用openssl1.0.2版本
  6. 2017-06-02 增加MariaDB 10.2
  7. 2017-05-15 增加腾讯云COS v4备份功能
  8. 2017-02-14 Nginx添加更多模块参数;新增Nginx magento2伪静态;Apache2.4 ssl默认开启http2
  9. 2016-11-02 增加AliSQL;默认启用jemalloc,去除tcmalloc
  10. 2016-10-15 数据库支持二进制或源码编译;PHP7支持ioncube、apcu;优化脚本格式
  11. 2016-08-21 增加./addons.sh
  12. 2016-06-16 Nginx默认使用openssl-1.0.2h;增加Apache SSL功能
  13. 2016-04-28 修复Ubuntu 16.04下php-5.3编译错误;V1.2版本发布
  14. 2016-04-12 增加OpenResty; 增加Percona-5.7;php编译增加–with-config-file-scan-dir参数,简化php扩展模块载入方式
  15. 2016-02-03 优化代码;修复《Apache mod_deflate压缩模块bug》;默认php编译--enable-intl --with-xsl参数
  16. 2016-01-10 Apache默认使用worker MPM模式; php-7.0支持gmagick扩展插件;卸载功能重写,可卸载单独模块
  17. 2015-12-07 PHP-7.0.0支持redis、memcached、imagick扩展插件
  18. 2015-12-02 PHP-7.0.0发布;增加MariaDB-10.1;vhost.sh增加https(默认自签名证书,需购买ssl证书替换);v1.0版本发布
  19. 2015-10-25 增加MySQL-5.7;vhost.sh增加thinkphp伪静态;源码更新到最新稳定
  20. 2015-08-31 使用hhvm自建yum仓库,修复一般用户远程备份问题
  21. 2015-08-07 添加虚拟主机删除功能
  22. 2015-08-04 代码重构优化,删除options.conf中web_install_dir db_install_dir db_data_dir参数
  23. 2015-07-16 删除vpn_centos.sh,添加SS服务器端安装脚本;提供数据库升级脚本;更改数据库默认字符集为utf8mb4,旧版本支持数据库升级请参考:《MySQL/MariaDB/Percona数据库升级》
  24. 2015-07-01 升级脚本合并成一个入口;添加数据库root密码重装脚本;源码包更新到最新稳定版;包含JAVA版本请访问OneinStack
  25. 2015-05-18 Pure-FTPd更改为PureDB(不依赖php和MySQL),提供添加FTP虚拟账号管理脚本
  26. 2015-05-12 可自定义Nginx/Apache/PHP-FPM运行用户(安装前修改options.conf中run_user参数);取消子模块依赖,如需重装、更新大版本php,如果之前已经安装,先删除已经安装目录(或者重命名,如mv /usr/local/php /usr/local/php_bk),再执行./install.sh php处选y,其余选择n即可;源码包更新到最新稳定版
  27. 2015-03-15 php mysql驱动默认为mysqlnd,删除libmysql驱动;软件包更新到最新稳定版
  28. 2014-06-09 提供本地备份和远程备份(服务器之间rsync)脚本
  29. 2014-05-30 增加ionCube,软件包更新到最新稳定版
  30. 2014-05-03 可选择mysqlnd驱动或libmysql驱动 (可参考://linuxeye.com/395.html),软件包更新到最新稳定版
  31. 2014-04-07 添加mariadb-10.0支持,软件包更新到最新稳定版
  32. 2014-03-02 添加apcu支持,php-5.5版本可选择项opcode cache
  33. 2014-02-27 软件包更新到最新稳定版;修复由php bug(opcache引起:https://bugs.php.net/bug.php?id=66597,在php.ini中加入opcache.optimization_level=0)的502错误
  34. 2014-01-18  提供Redis、phpMyAdmin升级脚本
  35. 2013-11-08  添加Apache-2.4,Apache-2.2,你可以自由组合安装LNMPLAMP、LANMP
  36. 2013-10-23  php-5.4、php5.3支持ZendGuardLoader;添加PHP缓存加速器(zendOpcache、eAccelerator)控制面板,方便查看命中数
  37. 2013-10-18  软件包更新到最新稳定版,提供Nginx/Tengine、PHP升级脚本
  38. 2013-09-20  添加Percona-5.5-33;更新php-5.5.4、php-5.4.20,mysql-5.6.14、mysql-5.5.34,ImageMagick-6.8.6-10
  39. 2013-09-10  添加php5.4 5.3可选xcache
  40. 2013-09-07  更新phpMyAdmin-4.0.6
  41. 2013-09-04  支持Debian;提供Tengine
  42. 2013-08-29  可选择使用tcmalloc或者jemalloc优化MySQL、Nginx,参考://linuxeye.com/355.html
  43. 2013-08-28  脚本模块化,提供多个版本选择;国内服务器使用163 yum(CentOS)
  44. 2013-08-22  支持Redis
  45. 2013-08-21  lnmp支持Ubuntu 12+
  46. 2013-08-17  更新php-5.5.2;防止断网中断安装过程(安装前执行screen -S lnmp),如果断网可通过 screen -r lnmp 重新连接
  47. 2013-08-16  更新ImageMagick-6.8.6-8;一些目录的变更和一些小bug
  48. 2013-08-13  添加数据库MariaDB,脚本可以选择安装MySQL还是MariaDB(MariaDB是MySQL分支,参考://linuxeye.com/352.html)
  49. 2013-08-09  初始化脚本加入 htop (参考://linuxeye.com/350.html)
  50. 2013-08-08  php-5.5内嵌PDO_MYSQL(预编译时加参数--with-pdo-mysql),删除扩展包PDO_MYSQL-1.0.2.tgz (官方说明:http://pecl.php.net/package/PDO_MYSQL);更新phpMyAdmin-4.0.5
  51. 2013-08-04  加入防盗链功能(添加虚拟主机可选项)
  52. 2013-08-01  更新MySQL-5.6.13
  53. 2013-07-29  更新phpMyAdmin-4.0.4.2;优化nginx参数(参考:nginx利用多核cpu配置参数worker_cpu_affinity)
  54. 2013-07-28  安装sendmail,使服务器能发邮件
  55. 2013-07-27  执行lnmp安装脚本可选择性的是否安装memcache,安装后默认启动memcached 并开启11211端口
  56. 2013-07-26  修复64位系统 ngx_pagespeed.sh 安装报错; 加入常用开源程序(wordpress、discuz)伪静态规则
  57. 2013-07-25
  58. 更新yum时,缺少-y参数,可能导致脚本无法自动下面安装;安装lnmp后,可添加ngx_pagespeed模块(执行/root/lnmp
  59. /ngx_pagespeed.sh安装模块),安装模块后用 /root/lnmp/vhost_ngx_pagespeed .sh
  60. 添加带这个功能的虚拟主机,不带执行原来脚本 /root/lnmp/vhost.sh 添加虚拟主机,ngx_pagespeed详情参考://linuxeye.com/318.html
  61. 2013-07-24  利用nginx防止sql注入(url中含有特性字符)
  62. 2013-07-22  hostname -i如果不为127.0.0.1,sendmail会出现问题,修改探针不能连接MySQL问题
  63. 2013-07-21  修复php-5.5.x编译报错struct flock问题(解决方法://linuxeye.com/342.html),至此脚本支持CentOS/RadHat 5/6 32/64bit
  64. 2013-07-19  版本更新php-5.5.1,  编译php-5.5.x CentOS 6 32位,报错checking for
  65. known struct flock definition… configure: error: Don’t know how to
  66. define struct flock on this system, set –enable-opcache=no
  67. 2013-07-18  版本更新nginx-1.4.2、ImageMagick-6.8.6-6; 脚本下载完后,检查所需源码包都是否下载,没有下载完,终止脚本,请联系我
  68. 2013-07-17  所有源码都更新到最新的stable版本(除imagick,php5.5需要3.1以上版本),增加vhost.sh ,方便添加虚拟主机,可以选择性的安装Pure-FTPd、phpMyAdmin
  69. 2013-07-16  将PHP版本更新到php-5.5.0、mysql-5.6.12
Mon Mar 14 09:16:34 CST 2022

 
  • 本文由 yeho 发表于 2014-12-26
  • 转载请务必保留本文链接:https://linuxeye.com/31.html
Linux

Nginx反向代理永久性缓存

Nginx缓存简介 Nginx缓存方式有两种: 永久性的缓存:这种缓存若不手动删除,该缓存文件会一直生效,因此,永久缓存只是用于缓存网站中几乎不会更改的内容; 临时缓存:这种缓存是根据请求连接进行哈希...
Linux

Nginx Lua Redis防止CC攻击

Nginx Lua Redis防止CC攻击实现原理:同一个外网IP、同一个网址(ngx.var.request_uri)、同一个客户端(http_user_agent)在某一段时间(CCseconds...
Linux

Keepalived+Nginx架构整理版

Keepalived介绍 keepalived是一个类似于layer3, 4, 5 交换机制的软件,也就是我们平时说的第3层、第4层和第5层交换。Keepalived的作用是检测web服务器的状态,如...
OneinStack PHP多版本共存教程 Linux

OneinStack PHP多版本共存教程

教程基于《OneinStack》一键PHP/JAVA安装工具中lnmp模式,很用户希望一个网站运行在php5.4,另一个网站运行在php7.0下,一台服务器上同时支持多个PHP版本,步骤如下: 1. ...
    • 庆祝
      庆祝

      换样式了不错,看的舒服,UI不错,沙发我抢了哈 :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink: :wink:

      • 襄阳系统集成
        襄阳系统集成

        UI不错,支持持续不断更新。

        • awcode
          awcode

          lamp 怎么支持ssl? apache2.4 php7

          • 韶关做网站
            韶关做网站

            占用 内存怎么样

            • helsinglee
              helsinglee

              顶顶啊

              • yam2k
                yam2k

                如何在LNMP包里配置nginx的别名,我想把phpMyAdmin放到/data/wwwroot目录下面。但参照网上介绍的配置不成功。请赐教,谢谢。

                  • yeho
                    yeho

                    @ yam2k ./vhost.sh 绑定网站根目录/data/wwwroot/phpMyAdmin,即可

                  • kx
                    kx

                    lnmp 安装owncloud失败,加好伪静态出错,想要换lamp试试,重新运行安装文件提示已有http服务,装不上apache,运行卸载文件,提示叫我删除全部
                    The following directory or files will be remove:
                    /data/mariadb
                    /home/wwwlogs
                    /home/wwwroot
                    /usr/local/mariadb
                    /usr/local/php
                    /usr/local/pureftpd
                    /usr/local/tengine
                    /etc/init.d/nginx
                    /etc/logrotate.d/nginx
                    /etc/init.d/mysqld
                    /etc/my.cnf
                    /etc/init.d/php-fpm
                    /etc/init.d/pureftpd
                    /usr/local/imagemagick

                    Press Ctrl+c to cancel or Press any key to continue…

                      • yeho
                        yeho

                        @ kx lnmp换lamp,./uninstall.sh 卸载nginx和php,再./install.sh 选择安装apache、php,其余选n。

                          • kx
                            kx

                            @ yeho unistall.sh提示删除全部

                        • 李逗逗
                          李逗逗

                          更改了lnmp的默认网站目录 ,但是还是访问默认的default ,是怎么回事。也重启了,楼主帮帮看看。

                            • yeho
                              yeho

                              @ 李逗逗 安装前修改options.conf,或者你直接修改/usr/local/nginx/conf/nginx.conf

                                • 李逗逗
                                  李逗逗

                                  @ yeho 谢啦 ,昨天改了 一直没有生效 今天生效了 ,安装了好几个版本 可能没有卸载干净

                              • redis,xcache默认加载到PHP了吗?
                                redis,xcache默认加载到PHP了吗?

                                redis,xcache默认加载到PHP了吗?

                                • hello
                                  hello

                                  Please restart the server and see if the services start up fine.
                                  Do you want to restart OS ? [y/n]: y
                                  为什么安装完重启之后,系统就坏了。进不了图形的桌面,系统直接进入了(localhost login:)的登陆命令界面 :sad: :sad:

                                    • yeho
                                      yeho

                                      @ hello 服务器还用图形界面吗???

                                    • 重金属
                                      重金属

                                      你好 请问怎样安装 php版本是7.谢谢!
                                      PHP Extension xsl.
                                      PHP Extension intl.

                                        • yeho
                                          yeho

                                          @ 重金属 xsl参考:http://oneinstack.com/question/php-xsl-extension-how-to-open/
                                          intl参考:http://oneinstack.com/question/1209/

                                            • 重金属
                                              重金属

                                              @ yeho 感谢!已经解决问题。

                                          • 咪啪咪啪
                                            咪啪咪啪

                                            mysql远程连接报了一个错误:
                                            2013 : Lost connection to MySQL server at ‘reading initial communication packet’, system error: 104 。
                                            按照网上的方法还是无法解决

                                            • 我爱思科
                                              我爱思科

                                              很好的一键安装包,其中mysql的日志默认开启的吧?

                                              • smoke
                                                smoke

                                                请教一下,去年装了lamp,最近发现mysql隔两天就挂掉了,只能重启服务器,请教一下应该如何优化,用的服务器是linode 最低配1G内存
                                                谢谢!

                                                  • yeho
                                                    yeho

                                                    @ smoke 看看/data/mysql/mysql-error.log和/var/log/messages ,调整下/etc/my.cnf 参数

                                                  • 颜羽夕。
                                                    颜羽夕。

                                                    LANMP环境HTTP可正常使用,HTTPS页面CSS走HTTP而不是走HTTPS导致各种蛋疼的问题,不知道该如何解决,已Google,baidu很多次没有找到对应的办法解决,不知老大可否针对这个问题研究一下,还有就是内存占用非常高,2G,3CPU,lnmp环境2000并发还能正常运行,LANMP直接挂了。。。 :!:

                                                      • yeho
                                                        yeho

                                                        @ 颜羽夕。 apache本来就必须消耗内存,https我到时候看看

                                                        • 挖藕
                                                          挖藕

                                                          @ 颜羽夕。 强制把css设置为https

                                                          • CaoLa
                                                            CaoLa

                                                            @ 颜羽夕。 CSS里的 url 写了 http 协议的链接了吧,建议写路径的或使用两斜扛“ // ” 来代替 “ http://”

                                                            • 哈喽
                                                              哈喽

                                                              @ 颜羽夕。 将链接改成 //yourdomain.com/images/css.css
                                                              这问题百度Google都有

                                                            • 二戒
                                                              二戒

                                                              希望能够增加suhosin扩展的编译以加强PHP安全,谢谢。
                                                              另外 希望能把GCC 编译优化参数调试得更全面,性能会更高,
                                                              其他做的非常好,比我的编译更细致。大大支持一下。

                                                              • 二戒
                                                                二戒

                                                                附一个我自己常用 的GCC编译器参数供参考,64位机器 ,
                                                                CXX=gcc CHOST=”x86_64-pc-linux-gnu” CFLAGS=”-O2 -fPIC -fomit-frame-pointer -pipe -march=nocona -mfpmath=sse -mmmx -msse -msse2 -m64 -maccumulate-outgoing-args -freg-struct-return -ftree-loop-linear -fprefetch-loop-arrays -frename-registers -fforce-addr -fivopts -ftree-vectorize -ftracer -frename-registers -minline-all-stringops -fgcse-sm -fgcse-las -fno-exceptions ” CXXFLAGS=”${CFLAGS} -felide-constructors -fno-rtti”

                                                                • wohealy
                                                                  wohealy

                                                                  我安装几次都会让系统出现问题 , su 不能用 .sudo 也被删除了. 我有安装日志,但是我不会看为什么..
                                                                  http://pan.baidu.com/s/1hqWq7vI 日志文件我传到了百度盘.
                                                                  主要是出现 运行 systemctl 显示
                                                                  Failed to get D-Bus connection: Operation not permitted
                                                                  su 显示 su: cannot open session: Permission denied
                                                                  我在安装之前测试正常的.

                                                                    • yeho
                                                                      yeho

                                                                      @ wohealy 安装日志没有问题,systemctl我测试了没有问题哦。。。

                                                                    • 胖瓜博客
                                                                      胖瓜博客

                                                                      博主,昨天用了你的包搭建了一个nginx,我就做了个静态网站,添加网站的时候生成了证书,新建网站的时候域名写的是panggua.net,网页里面设置的主页也是panggua.net,但是只有ie和chrome能认证书,Firefox和edge都不认,我看了看你的linuxeye.com又是正确的,是我哪里没弄对吗,求指导,谢谢

                                                                        • yeho
                                                                          yeho

                                                                          @ 胖瓜博客 默认脚本生成的是自签名的crt,有把csr拿去签名,替换crt重启nginx吗?

                                                                            • 胖瓜博客
                                                                              胖瓜博客

                                                                              @ yeho 什么?还要替换签名?就是要去换一个要收费的那种吗,如果是,你用的哪家的,免费的那种有用吗

                                                                          • yunluoxinghen
                                                                            yunluoxinghen

                                                                            location ~ ^.*/data/(.*\.php)?$ {
                                                                            deny all;
                                                                            }
                                                                            禁止目录执行php后,直接访问目录会提示403,有首页文件如index.html。 但是url添加/index.html 能正常访问。但data目录下的其他目录却没问题

                                                                              • yeho
                                                                                yeho

                                                                                @ yunluoxinghen 禁止data目录下php不允许访问,location写得不对吧?

                                                                                  • yunluoxinghen
                                                                                    yunluoxinghen

                                                                                    @ yeho 我的意思是inde.html也不能访问。www.xxx.com/data/ 这样的就提示403 http://www.xxx.com/data/index.html 就正常。www.xxx.com/data/xxx/ 这种目录下的却没问题,求教

                                                                                    • yunluoxinghen
                                                                                      yunluoxinghen

                                                                                      @ yeho 谢谢,解决了,是写的不对,我是按默认的查考改的。

                                                                                  • 小菜菜
                                                                                    小菜菜

                                                                                    请问如果挂载数据盘的话应该挂到哪儿

                                                                                    • Leepin
                                                                                      Leepin

                                                                                      安装包的redis 默认会绑定 0.0.0.0 允许任意端口访问,因此会导致该端口被恶意利用,请知悉。

                                                                                        • yeho
                                                                                          yeho

                                                                                          @ Leepin memcached和redis默认已经改成127.0.0.1,而且之前有iptables不影响

                                                                                        • shaocn.ha
                                                                                          shaocn.ha

                                                                                          博主 您好 我在AWS上按照您的方法安装了lnmp之后重启就断网了 连接不上 是怎么回事啊?

                                                                                          • hjt
                                                                                            hjt

                                                                                            lnmp只能在服务器编译吗……小内存linux怕编译不起啊……

                                                                                              • yeho
                                                                                                yeho

                                                                                                @ hjt 编译,后续提供rpm方式

                                                                                              • 岁月小筑
                                                                                                岁月小筑

                                                                                                LNMPA安装方法是在安装过程中同时选nginx和apache就行了吗?还要自己修改吗?

                                                                                                • shenbaka
                                                                                                  shenbaka

                                                                                                  我又来了…centos7.2裸装lnmpa结果nginx启动不了…conoha家。
                                                                                                  nginx apache2.4 mysql5.7 php7 zend phpmyadmin memcached jemalloc
                                                                                                  建了虚拟主机打开一直是apache的默认界面,然后重启了一下nginx就提示下面这句,把虚拟主机删掉了还是这样…
                                                                                                  Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

                                                                                                  • 晓梦
                                                                                                    晓梦

                                                                                                    博主 求解答 。 安装oneinstack后建立几个几个虚拟主机, 在httpd.conf设置的APACHE根目录 没有起作用,始终是默认的/data/wwwroot/default路径, 我的数据盘挂载点不是/data,想把网站文件的根目录改成其他路径。没有效果,几个虚拟主机访问的都是默认的/data/wwwroot/default路径下的文件。怎么改Apache的根目录?

                                                                                                      • yeho
                                                                                                        yeho

                                                                                                        @ 晓梦 apache修改默认站点修改2个文件/usr/local/apache/conf/httpd.conf和/usr/local/apache/conf/vhost/0.conf

                                                                                                      • 空樱酱
                                                                                                        空樱酱

                                                                                                        不存在的php文件访问时会No Input File Specified?而不是nginx 默认404页

                                                                                                          • yeho
                                                                                                            yeho

                                                                                                            @ 空樱酱 文件没放对位置

                                                                                                              • 空樱酱
                                                                                                                空樱酱

                                                                                                                @ yeho 博主的站也不行:http://oneinstack.com/test.php
                                                                                                                显示No input file specified. 我添加了try_files $uri = 404;就可以了

                                                                                                            • Comeback
                                                                                                              Comeback

                                                                                                              我有CentOS的7 VPS和我有这样的错误信息:

                                                                                                              [quote]c++: internal compiler error: Killed (program cc1plus)
                                                                                                              Please submit a full bug report,
                                                                                                              with preprocessed source if appropriate.
                                                                                                              See for instructions.
                                                                                                              make[2]: *** [sql/CMakeFiles/sql.dir/item_geofunc.cc.o] Error 4
                                                                                                              make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
                                                                                                              make: *** [all] Error 2
                                                                                                              MySQL install failed, Please contact the author!
                                                                                                              Killed
                                                                                                              /bin/cp: cannot stat ‘/usr/local/mysql/support-files/mysql.server’: No such file or directory
                                                                                                              [root@7585 lnmp]# chmod: cannot access ‘/etc/init.d/mysqld’: No such file or directory
                                                                                                              error reading information on service mysqld: No such file or directory
                                                                                                              error reading information on service mysqld: No such file or directory
                                                                                                              include/mysql-5.7.sh: line 207: /usr/local/mysql/bin/mysqld: No such file or directory
                                                                                                              Redirecting to /bin/systemctl start mysqld.service
                                                                                                              Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.
                                                                                                              include/mysql-5.7.sh: line 216: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                              include/mysql-5.7.sh: line 217: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                              include/mysql-5.7.sh: line 218: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                              Redirecting to /bin/systemctl stop mysqld.service
                                                                                                              Failed to stop mysqld.service: Unit mysqld.service not loaded.[/quote]

                                                                                                                • yeho
                                                                                                                  yeho

                                                                                                                  @ Comeback mysql-5.7吗?配置太低,占用资源搞,系统自己kill掉了吧

                                                                                                                    • Comeback
                                                                                                                      Comeback

                                                                                                                      @ yeho 这需要多大的内存?

                                                                                                                      在CentOS7,512 MB内存是不够的!

                                                                                                                      感谢您的帮助

                                                                                                                  • 我有一个问题
                                                                                                                    我有一个问题

                                                                                                                    vhost.sh增加https(默认自签名证书,需购买ssl证书替换) 能详细点吗???

                                                                                                                    • Alan
                                                                                                                      Alan

                                                                                                                      请问 yeho大 lnmp MariaDB-10.0 的 have_openssl 是NO的, 是否需要重新编译安装来支持它?
                                                                                                                      yeho大的 lnmp 能否自行再独立重新编译安装呢?
                                                                                                                      谢谢

                                                                                                                      • michael
                                                                                                                        michael

                                                                                                                        作者你好,使用了ois非常方便是多年来很难得的一键工具包,在使用中发现一个现象
                                                                                                                        我用xshell和xftp两个软件配合使用的时候,当我在xshell登录后,比如cd到某个目录之后,如/www/web目录,这时候我在点击xftp,在xftp的远程目录中 应该是直接打开/www/web目录的。。

                                                                                                                        而现在默认始终进入的是/root/lnmp目录。

                                                                                                                          • yeho
                                                                                                                            yeho

                                                                                                                            @ michael 这个和xshell和xftp工具有关系呢 ?

                                                                                                                          • 这里的mysql怎么用
                                                                                                                            这里的mysql怎么用

                                                                                                                            第一次用,问下怎样才能在任何路径下进去mysql?装完后似乎并没有mysql命令。

                                                                                                                            • 自在也
                                                                                                                              自在也

                                                                                                                              请问,PHP没有pcntl 和readline扩展吗?

                                                                                                                                • yeho
                                                                                                                                  yeho

                                                                                                                                  @ 自在也 默认安装完后,打开phpinfo页面就知道了

                                                                                                                                    • 自在也
                                                                                                                                      自在也

                                                                                                                                      @ yeho 嗯,没有readline,自己装了,谢谢博主的分享,很好用,很强大!

                                                                                                                                  • eviljelly
                                                                                                                                    eviljelly

                                                                                                                                    想问能支持在mac下使用吗?想在本地搭建lnmp环境,好像现在都没有做一键包的。

                                                                                                                                    • Comeback
                                                                                                                                      Comeback

                                                                                                                                      我有一个VPS,Centos下7。

                                                                                                                                      它拥有1 GB内存

                                                                                                                                      我有这样的错误信息

                                                                                                                                      [quote]CMake Error at cmake/boost.cmake:81 (MESSAGE):
                                                                                                                                      You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=

                                                                                                                                      This CMake script will look for boost in . If it is not there,
                                                                                                                                      it will download and unpack it (in that directory) for you.

                                                                                                                                      If you are inside a firewall, you may need to use an http proxy:

                                                                                                                                      export http_proxy=http://example.com:80

                                                                                                                                      Call Stack (most recent call first):
                                                                                                                                      cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)
                                                                                                                                      CMakeLists.txt:443 (INCLUDE)

                                                                                                                                      — Configuring incomplete, errors occurred!
                                                                                                                                      make: *** No targets specified and no makefile found. Stop.
                                                                                                                                      make: *** No rule to make target `install’. Stop.
                                                                                                                                      MySQL install failed, Please contact the author!
                                                                                                                                      Killed
                                                                                                                                      [root@htd1602 lnmp]# /bin/cp: cannot stat ‘/usr/local/mysql/support-files/mysql.server’: No such file or directory
                                                                                                                                      chmod: cannot access ‘/etc/init.d/mysqld’: No such file or directory
                                                                                                                                      error reading information on service mysqld: No such file or directory
                                                                                                                                      error reading information on service mysqld: No such file or directory
                                                                                                                                      include/mysql-5.7.sh: line 206: /usr/local/mysql/bin/mysqld: No such file or directory
                                                                                                                                      Redirecting to /bin/systemctl start mysqld.service
                                                                                                                                      Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.
                                                                                                                                      include/mysql-5.7.sh: line 215: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                      include/mysql-5.7.sh: line 216: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                      include/mysql-5.7.sh: line 217: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                      Redirecting to /bin/systemctl stop mysqld.service
                                                                                                                                      Failed to stop mysqld.service: Unit mysqld.service not loaded.[/quote]

                                                                                                                                        • yeho
                                                                                                                                          yeho

                                                                                                                                          @ Comeback 1G 内存,太小,配置太低,mysql5.7建议在2core 2G内存以上安装

                                                                                                                                            • Comeback
                                                                                                                                              Comeback

                                                                                                                                              @ yeho 今天,它的工作原理。
                                                                                                                                              我觉得很奇怪!
                                                                                                                                              这是一个VPS测试。
                                                                                                                                              我装了好几次。
                                                                                                                                              昨天我有问题。
                                                                                                                                              之前,我从来没有问题

                                                                                                                                              • iwowcn
                                                                                                                                                iwowcn

                                                                                                                                                @ yeho 阿里云ECS主机,2核心Intel Xeon E5-2682 v4,4G/DDR4内存,升级mysql5.7.18提示以下错误,何故?

                                                                                                                                                input error! Please only input ‘5.6.xx’

                                                                                                                                                  • yeho
                                                                                                                                                    yeho

                                                                                                                                                    @ iwowcn 考虑到兼容性,不支持跨大版本升级

                                                                                                                                              • Thomas
                                                                                                                                                Thomas

                                                                                                                                                lnmp 如何安装Https 证书 我装完提示是红色标

                                                                                                                                                  • 哈喽
                                                                                                                                                    哈喽

                                                                                                                                                    @ Thomas 自签名当然是红色的,这不需要问。

                                                                                                                                                  • michael
                                                                                                                                                    michael

                                                                                                                                                    今日发现这样一个问题,全新安装的最新版安装包,其中用的php7,在配置Magento开源商城的时候,无法打开/setup向导页面,并且也无任何提示。
                                                                                                                                                    后来找了半天有给这样解决方案的,In your nginx config file include fastcgi_split_path_info ^(.+\.php)(/.+)$; in the location block where all the other fastcgi params are defined.
                                                                                                                                                    那篇文章标题是这样的,Access denied (403) for PHP files with Nginx + PHP-FPM
                                                                                                                                                    http://stackoverflow.com/questions/23390531/access-denied-403-for-php-files-with-nginx-php-fpm?answertab=active#tab-top

                                                                                                                                                    因为都是默认安装,什么都没操作,所以不知道是哪方面的问题或bug,并且magento还是目前全球很受欢迎的开源商城,特反馈一下。
                                                                                                                                                    另外下面这个也是一个国外的人发现同样的问题。
                                                                                                                                                    https://github.com/magento/magento2/issues/2504

                                                                                                                                                      • 哈喽
                                                                                                                                                        哈喽

                                                                                                                                                        @ michael 你肯定都没设置伪静态

                                                                                                                                                      • michael
                                                                                                                                                        michael

                                                                                                                                                        顺便说一下,这个magento商城自带个貌似比较复杂的真对nginx的配置的simple文件,作者酌情可以考虑加在其中。

                                                                                                                                                        # Magento Vars
                                                                                                                                                        # set $MAGE_ROOT /path/to/magento/root;
                                                                                                                                                        # set $MAGE_MODE default; # or production or developer
                                                                                                                                                        #
                                                                                                                                                        # Example configuration:
                                                                                                                                                        # upstream fastcgi_backend {
                                                                                                                                                        # # use tcp connection
                                                                                                                                                        # # server 127.0.0.1:9000;
                                                                                                                                                        # # or socket
                                                                                                                                                        # server unix:/var/run/php5-fpm.sock;
                                                                                                                                                        # }
                                                                                                                                                        # server {
                                                                                                                                                        # listen 80;
                                                                                                                                                        # server_name mage.dev;
                                                                                                                                                        # set $MAGE_ROOT /var/www/magento2;
                                                                                                                                                        # set $MAGE_MODE developer;
                                                                                                                                                        # include /vagrant/magento2/nginx.conf.sample;
                                                                                                                                                        # }

                                                                                                                                                        root $MAGE_ROOT/pub;

                                                                                                                                                        index index.php;
                                                                                                                                                        autoindex off;
                                                                                                                                                        charset off;

                                                                                                                                                        add_header ‘X-Content-Type-Options’ ‘nosniff’;
                                                                                                                                                        add_header ‘X-XSS-Protection’ ‘1; mode=block’;

                                                                                                                                                        location /setup {
                                                                                                                                                        root $MAGE_ROOT;
                                                                                                                                                        location ~ ^/setup/index.php {
                                                                                                                                                        fastcgi_pass fastcgi_backend;
                                                                                                                                                        fastcgi_index index.php;
                                                                                                                                                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                                                                                                                                                        include fastcgi_params;
                                                                                                                                                        }

                                                                                                                                                        location ~ ^/setup/(?!pub/). {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location ~ ^/setup/pub/ {
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        }
                                                                                                                                                        }

                                                                                                                                                        location /update {
                                                                                                                                                        root $MAGE_ROOT;

                                                                                                                                                        location ~ ^/update/index.php {
                                                                                                                                                        fastcgi_split_path_info ^(/update/index.php)(/.+)$;
                                                                                                                                                        fastcgi_pass fastcgi_backend;
                                                                                                                                                        fastcgi_index index.php;
                                                                                                                                                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                                                                                                                                                        fastcgi_param PATH_INFO $fastcgi_path_info;
                                                                                                                                                        include fastcgi_params;
                                                                                                                                                        }

                                                                                                                                                        # deny everything but index.php
                                                                                                                                                        location ~ ^/update/(?!pub/). {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location ~ ^/update/pub/ {
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        }
                                                                                                                                                        }

                                                                                                                                                        location / {
                                                                                                                                                        try_files $uri $uri/ /index.php?$args;
                                                                                                                                                        }

                                                                                                                                                        location /pub {
                                                                                                                                                        location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) {
                                                                                                                                                        deny all;
                                                                                                                                                        }
                                                                                                                                                        alias $MAGE_ROOT/pub;
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        }

                                                                                                                                                        location /static/ {
                                                                                                                                                        if ($MAGE_MODE = “production”) {
                                                                                                                                                        expires max;
                                                                                                                                                        }
                                                                                                                                                        location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
                                                                                                                                                        add_header Cache-Control “public”;
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        expires +1y;

                                                                                                                                                        if (!-f $request_filename) {
                                                                                                                                                        rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
                                                                                                                                                        }
                                                                                                                                                        }
                                                                                                                                                        location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
                                                                                                                                                        add_header Cache-Control “no-store”;
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        expires off;

                                                                                                                                                        if (!-f $request_filename) {
                                                                                                                                                        rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
                                                                                                                                                        }
                                                                                                                                                        }
                                                                                                                                                        if (!-f $request_filename) {
                                                                                                                                                        rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
                                                                                                                                                        }
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        }

                                                                                                                                                        location /media/ {
                                                                                                                                                        try_files $uri $uri/ /get.php?$args;

                                                                                                                                                        location ~ ^/media/theme_customization/.*\.xml {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
                                                                                                                                                        add_header Cache-Control “public”;
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        expires +1y;
                                                                                                                                                        try_files $uri $uri/ /get.php?$args;
                                                                                                                                                        }
                                                                                                                                                        location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
                                                                                                                                                        add_header Cache-Control “no-store”;
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        expires off;
                                                                                                                                                        try_files $uri $uri/ /get.php?$args;
                                                                                                                                                        }
                                                                                                                                                        add_header X-Frame-Options “SAMEORIGIN”;
                                                                                                                                                        }

                                                                                                                                                        location /media/customer/ {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location /media/downloadable/ {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location /media/import/ {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location ~ cron\.php {
                                                                                                                                                        deny all;
                                                                                                                                                        }

                                                                                                                                                        location ~ (index|get|static|report|404|503)\.php$ {
                                                                                                                                                        try_files $uri =404;
                                                                                                                                                        fastcgi_pass fastcgi_backend;

                                                                                                                                                        fastcgi_param PHP_FLAG “session.auto_start=off \n suhosin.session.cryptua=off”;
                                                                                                                                                        fastcgi_param PHP_VALUE “memory_limit=256M \n max_execution_time=600”;
                                                                                                                                                        fastcgi_read_timeout 600s;
                                                                                                                                                        fastcgi_connect_timeout 600s;
                                                                                                                                                        fastcgi_param MAGE_MODE $MAGE_MODE;

                                                                                                                                                        fastcgi_index index.php;
                                                                                                                                                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                                                                                                                                                        include fastcgi_params;
                                                                                                                                                        }

                                                                                                                                                        • 哈喽
                                                                                                                                                          哈喽

                                                                                                                                                          奇怪啊,这两天新装了三个,占大小都不一样的?!同样的安装啊,5G小空间是占用2.22G,7G空间占了2.9G,18G空间却占了4.3G,这是啥原因?

                                                                                                                                                          • lnmpa
                                                                                                                                                            lnmpa

                                                                                                                                                            最新版的Tengine-2.1.2 支持HTTP/2了 希望更新一下

                                                                                                                                                              • yeho
                                                                                                                                                                yeho

                                                                                                                                                                @ lnmpa 官方提供tengine-2.1.2 http2编译有问题

                                                                                                                                                              • SilverLining
                                                                                                                                                                SilverLining

                                                                                                                                                                楼主你好,请教一个问题,我用了你的脚本在DO的VPS和阿里云的主机都安装成功(Ubuntu 14.04 x64),但是在我自己的电脑上(Ubuntu 15.10 x64)Nginx的启动有些问题(因为想本地测试PHP)。脚本提示安装成功,使用 sudo nginx -t 测试配置也是success的,但是 sudo service nginx restart 就会报错:Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.
                                                                                                                                                                具体日志:
                                                                                                                                                                ● nginx.service – A high performance web server and a reverse proxy server
                                                                                                                                                                Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
                                                                                                                                                                Active: failed (Result: exit-code) since Wed 2016-04-13 09:56:36 CST; 41s ago
                                                                                                                                                                Process: 5300 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=203/EXEC)
                                                                                                                                                                Apr 13 09:56:36 sony systemd[1]: Starting A high performance web server and a reverse proxy server…
                                                                                                                                                                Apr 13 09:56:36 sony systemd[1]: nginx.service: Control process exited, code=exited status=203
                                                                                                                                                                Apr 13 09:56:36 sony systemd[1]: Failed to start A high performance web server and a reverse proxy server.
                                                                                                                                                                Apr 13 09:56:36 sony systemd[1]: nginx.service: Unit entered failed state.
                                                                                                                                                                Apr 13 09:56:36 sony systemd[1]: nginx.service: Failed with result ‘exit-code’.

                                                                                                                                                                Google了一些结果,排除了Apache(未安装)和 listen 80 端口占用的原因,可能是权限问题但是我解决不了了,楼主可以告知如何解决吗?谢谢!

                                                                                                                                                                • patrick
                                                                                                                                                                  patrick

                                                                                                                                                                  想问下 @yeho , 我centOS 7 下安装lnmp包, 其中安装了nginx 跟hhvm , 安装成功后,因为安装程序我要修改一些PHP参数, 于是我修改了/usr/local/etc/php.ini,还有/etc/hhvm/php.ini, 但是重启nginx 不能生效,然后重启hhvm 也不能生效,这个我应该怎么修改了,是不是还有其他的地方要修改。 是不是启用了hhvm ,/usr/local/etc/php.ini,这个就不需要了。

                                                                                                                                                                  • zhang
                                                                                                                                                                    zhang

                                                                                                                                                                    你好 请问怎样继续下去

                                                                                                                                                                    wget https://github.com/pagespeed/ngx_pagespeed/archive/release-1.11.33.0-beta.zip unzip -q release-1.11.33.0-beta wget https://dl.google.com/dl/page-speed/psol/1.11.33.0.tar.gz tar xzf 1.11.33.0.tar.gz -C ngx_pagespeed-release-1.11.33.0-beta

                                                                                                                                                                    tar -xvzf nginx-1.9.12.tar.gz
                                                                                                                                                                    cd nginx-1.9.12/

                                                                                                                                                                    /configure –prefix=/usr/local/nginx –user=www –group=www –with-http_stub_status_module –with-http_ssl_module –add-module=../ngx_pagespeed-release-1.11.33.0-beta/

                                                                                                                                                                      • yeho
                                                                                                                                                                        yeho

                                                                                                                                                                        @ zhang 参考:https://linuxeye.com/318.html

                                                                                                                                                                      • smartweb
                                                                                                                                                                        smartweb

                                                                                                                                                                        ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert’:
                                                                                                                                                                        /opt/lnmp/src/php-5.3.29/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open’
                                                                                                                                                                        /opt/lnmp/src/php-5.3.29/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv’
                                                                                                                                                                        /opt/lnmp/src/php-5.3.29/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close’
                                                                                                                                                                        /opt/lnmp/src/php-5.3.29/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close’
                                                                                                                                                                        安装时出错VM: debian8.04-64
                                                                                                                                                                        collect2: error: ld returned 1 exit status
                                                                                                                                                                        Makefile:250: recipe for target ‘sapi/cli/php’ failed
                                                                                                                                                                        make: *** [sapi/cli/php] Error 1
                                                                                                                                                                        [1;31mPHP install failed, Please Contact the author! [0m

                                                                                                                                                                          • yeho
                                                                                                                                                                            yeho

                                                                                                                                                                            @ smartweb debian8 openssl太新,而php5.3.29是几年前的,不兼容太新的openssl,不支持,需要自己安装openssl ,并编译php指定openssl路径。

                                                                                                                                                                          • fedora
                                                                                                                                                                            fedora

                                                                                                                                                                            fedora23能用吗?

                                                                                                                                                                              • yeho
                                                                                                                                                                                yeho

                                                                                                                                                                                @ fedora 没测试过,不能用

                                                                                                                                                                                  • fedora
                                                                                                                                                                                    fedora

                                                                                                                                                                                    @ yeho 好像是基于redhat的?我正在安装测试。
                                                                                                                                                                                    之前给你提的把check_os里面改成ubuntu可以无缝在mint下面装,没有任何问题,你说测试下
                                                                                                                                                                                    后面也没反馈了

                                                                                                                                                                                    • fedora
                                                                                                                                                                                      fedora

                                                                                                                                                                                      @ yeho fedora23直接支持,不用改任何东西,完美安装
                                                                                                                                                                                      我装了
                                                                                                                                                                                      openresty
                                                                                                                                                                                      php5.6
                                                                                                                                                                                      mysql5.7
                                                                                                                                                                                      opcache
                                                                                                                                                                                      memcache
                                                                                                                                                                                      redis

                                                                                                                                                                                  • 憧憬Licoy
                                                                                                                                                                                    憧憬Licoy

                                                                                                                                                                                    博主,你的创建虚拟主机的指令有误,现在的vhsot.sh是在lnmp目录下,应该是./lnmp/vhost.sh才可以

                                                                                                                                                                                    • cc
                                                                                                                                                                                      cc

                                                                                                                                                                                      我想问一下哈。怎么来安装Nginx ngx_cache_purge fastcgi_cache_path 怎么编译哈。可以一步一步的吗?我不懂编译安装,小学生一个。我就是喜欢折腾。
                                                                                                                                                                                      我现在用的是OpenResty 安装这个就不用在安装Nginx 了哈。
                                                                                                                                                                                      如果编译。怎么编译哈。命令,一步一步的来,你就当是我小学生好了。越详细越好了。
                                                                                                                                                                                      谢谢了。

                                                                                                                                                                                      • 哈喽
                                                                                                                                                                                        哈喽

                                                                                                                                                                                        可以同时安装两个php版本么? 7+5.6 这样。 使用是不是就是在nginx配置上指定php版本?

                                                                                                                                                                                          • yeho
                                                                                                                                                                                            yeho

                                                                                                                                                                                            @ 哈喽 参考:https://linuxeye.com/441.html

                                                                                                                                                                                              • 哈喽
                                                                                                                                                                                                哈喽

                                                                                                                                                                                                @ yeho 反过来装可以不? 就是先装了7,再装5.6

                                                                                                                                                                                            • Ryan
                                                                                                                                                                                              Ryan

                                                                                                                                                                                              c++: internal compiler error: Killed (program cc1plus)
                                                                                                                                                                                              Please submit a full bug report,
                                                                                                                                                                                              with preprocessed source if appropriate.
                                                                                                                                                                                              See for instructions.
                                                                                                                                                                                              make[2]: *** [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] Error 4
                                                                                                                                                                                              make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
                                                                                                                                                                                              make: *** [all] Error 2
                                                                                                                                                                                              MySQL install failed, Please contact the author!
                                                                                                                                                                                              Killed
                                                                                                                                                                                              root@default:~/lnmp# /bin/cp: cannot stat `/usr/local/mysql/support-files/mysql.server’: No such file or directory
                                                                                                                                                                                              chmod: cannot access `/etc/init.d/mysqld’: No such file or directory
                                                                                                                                                                                              update-rc.d: /etc/init.d/mysqld: file does not exist
                                                                                                                                                                                              include/mysql-5.5.sh: line 192: /usr/local/mysql/scripts/mysql_install_db: No such file or directory
                                                                                                                                                                                              mysqld: unrecognized service
                                                                                                                                                                                              include/mysql-5.5.sh: line 201: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 202: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 203: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 204: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 205: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 206: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              include/mysql-5.5.sh: line 207: /usr/local/mysql/bin/mysql: No such file or directory
                                                                                                                                                                                              mysqld: unrecognized service

                                                                                                                                                                                              报错

                                                                                                                                                                                              • 哈喽
                                                                                                                                                                                                哈喽

                                                                                                                                                                                                ImageMagick 漏洞怎么修补?

                                                                                                                                                                                                  • Michael
                                                                                                                                                                                                    Michael

                                                                                                                                                                                                    @ 哈喽 同问,…

                                                                                                                                                                                                    作者在新版本是不是要考虑ImageMagick 升级到7.x版本了。。目前的针对wordpress有很大的漏洞,而且明确说的是ImageMagick 那边的问题。。

                                                                                                                                                                                                  • Victor
                                                                                                                                                                                                    Victor

                                                                                                                                                                                                    Magento 2 采用了官方提供的conf文件.. JS,图片 错误提示 Failed to load resource: the server responded with a status of 404 (Not Found).
                                                                                                                                                                                                    请问一下如何解决呢?

                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                        yeho

                                                                                                                                                                                                        @ Victor 配置文件没该对吧,静态资源路径不对

                                                                                                                                                                                                          • Victor
                                                                                                                                                                                                            Victor

                                                                                                                                                                                                            @ yeho Magento官方提供的Conf文件应该不会有问题的吧…

                                                                                                                                                                                                          • Asttear
                                                                                                                                                                                                            Asttear

                                                                                                                                                                                                            @ Victor 403了,不造怎么弄······

                                                                                                                                                                                                          • young
                                                                                                                                                                                                            young

                                                                                                                                                                                                            pureftp创建用户权限有问题,无法上传创建文件,wordpress后台自动更新也会提示无法创建目录错误

                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                @ young 参考:https://oneinstack.com/question/how-to-set-permissions-for-the-web-site-root-directory/

                                                                                                                                                                                                              • 小z
                                                                                                                                                                                                                小z

                                                                                                                                                                                                                请问安装了LNMP,nginx如何单独安装插件:FancyIndex 来美化目录索引,比如地址:http://mirrors.linuxeye.com/ 是如何美化的呢?默认的太丑了,功能也少。

                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                    @ 小z 需要自己重现编译nginx,参考:https://linuxeye.com/409.html

                                                                                                                                                                                                                      • 小z
                                                                                                                                                                                                                        小z

                                                                                                                                                                                                                        @ yeho 好的,太感谢了。重新编译完成后对现有站点不会造成影响吧?

                                                                                                                                                                                                                    • sxlcity
                                                                                                                                                                                                                      sxlcity

                                                                                                                                                                                                                      checking for icu-config… /usr/bin/icu-config
                                                                                                                                                                                                                      checking for location of ICU headers and libraries… /usr
                                                                                                                                                                                                                      checking for ICU 4.0 or greater… found 3.6
                                                                                                                                                                                                                      configure: error: ICU version 4.0 or later is required
                                                                                                                                                                                                                      make: *** No targets specified and no makefile found. Stop.
                                                                                                                                                                                                                      make: *** No rule to make target `install’. Stop.
                                                                                                                                                                                                                      PHP install failed, Please Contact the author!
                                                                                                                                                                                                                      Killed
                                                                                                                                                                                                                      以上是报错,在虚拟机里装的

                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                          @ sxlcity yum源有问题,请确保yum -y install libicu-devel 能正常安装

                                                                                                                                                                                                                        • 孙昊
                                                                                                                                                                                                                          孙昊

                                                                                                                                                                                                                          centos7 服务器连接到路由器之后,导致路由器网络连接数超出限制,路由器cpu占用率90%,路由器最大连接数在15000~30000 服务器需要怎么来配置呢?

                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                              @ 孙昊 服务器连接路由器有这么多连接数吗?

                                                                                                                                                                                                                            • 梦境中
                                                                                                                                                                                                                              梦境中

                                                                                                                                                                                                                              你好,这个默认的80端口在哪改啊,找了很多地方都没找到这个配置文件

                                                                                                                                                                                                                                • yeho
                                                                                                                                                                                                                                  yeho

                                                                                                                                                                                                                                  @ 梦境中 /usr/local/nginx/conf/vhost/绑定域名.conf
                                                                                                                                                                                                                                  /usr/local/apache/conf/httpd.conf,/usr/local/apache/conf/vhost/绑定域名.conf 特别注意iptables端口号是否开放

                                                                                                                                                                                                                                • 有客it
                                                                                                                                                                                                                                  有客it

                                                                                                                                                                                                                                  安装完毕LNMP后 怎么数据库的管理地址是内网?要怎么修改成外网地址啊?

                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                      @ 有客it 参考:https://oneinstack.com/question/oneinstack-how-to-configure-mysql-remote-connection/

                                                                                                                                                                                                                                    • tutugreen
                                                                                                                                                                                                                                      tutugreen

                                                                                                                                                                                                                                      您好,安装lnmpa时,在安装mysql前好像会设置iptables。
                                                                                                                                                                                                                                      然后安装mysql的文件就会下载失败,一直重试(到最后mysql会安装失败),直到我清了规则,策略改为接受。

                                                                                                                                                                                                                                      (一开始还以为mysql的cdn是不是有问题,直到我发现wget哪里都有问题)

                                                                                                                                                                                                                                      不知否有什么影响。。。

                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                          @ tutugreen 安装mysql和iptables没关系,是不是网络有问题,导致安装包没下载网站解压源码安装失败

                                                                                                                                                                                                                                        • 深蓝
                                                                                                                                                                                                                                          深蓝

                                                                                                                                                                                                                                          博主,今天用lnmp搭建了环境,发现fsockopen不能开启,不知道何解?下面是我配置php.ini的命令:
                                                                                                                                                                                                                                          # sed -i ‘s/,fsockopen//g’ /usr/local/php/etc/php.ini
                                                                                                                                                                                                                                          # sed -i ‘s/,pfsockopen//g’ /usr/local/php/etc/php.ini
                                                                                                                                                                                                                                          重启php-fpm后发现没又开启。求解答!谢谢!

                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                              @ 深蓝 尝试把php.ini中disable_functions注销重启php-fpm试试

                                                                                                                                                                                                                                                • 深蓝
                                                                                                                                                                                                                                                  深蓝

                                                                                                                                                                                                                                                  @ yeho 试过了,把disable_functions全部注释掉,或者把里面关于fsockopen的项单独删除都不行。
                                                                                                                                                                                                                                                  问题会出在哪里呢?我这边有个程序需要fsockopen支持,不然一直会报个错误。

                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                      @ 深蓝 php.ini设置allow_url_fopen = On试试

                                                                                                                                                                                                                                                • 云舒
                                                                                                                                                                                                                                                  云舒

                                                                                                                                                                                                                                                  比如我要安装ftp,然后其他选择n,点击install.sh,发现会执行yum update,然后之前的httpd用不了了,崩溃。。。

                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                      @ 云舒 不会yum update只会更新个别包比如glic bash openssl,apache是yum安装的吗?

                                                                                                                                                                                                                                                    • 离顽
                                                                                                                                                                                                                                                      离顽

                                                                                                                                                                                                                                                      ./vhost.sh 厦门 显示accesslog 选项后面,没有出现url rewrite 的选项,这是怎么回事啊?

                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                          @ 离顽 如果安装apache直接向网站根目录里面丢.htacess即可

                                                                                                                                                                                                                                                            • 离顽
                                                                                                                                                                                                                                                              离顽

                                                                                                                                                                                                                                                              @ yeho 其实是想用下你们提供的url rewrite 模块,自己网上找的 .htaccess 不好用。

                                                                                                                                                                                                                                                          • 离顽
                                                                                                                                                                                                                                                            离顽

                                                                                                                                                                                                                                                            安装lamp 出错:
                                                                                                                                                                                                                                                            checking whether to enable mod_deflate… configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
                                                                                                                                                                                                                                                            make: *** No targets specified and no makefile found. Stop.
                                                                                                                                                                                                                                                            Apache install failed, Please contact the author!

                                                                                                                                                                                                                                                            • wn
                                                                                                                                                                                                                                                              wn

                                                                                                                                                                                                                                                              这个装PHP时是不是没有openssl这个模块

                                                                                                                                                                                                                                                              • 穷屌丝
                                                                                                                                                                                                                                                                穷屌丝

                                                                                                                                                                                                                                                                请问nginx的虚拟主机文件位置?刚接触lnmp,对文件位置不太了解,比如虚拟主机配置文件应该放在哪里才生效?原来默认的是/sites-available
                                                                                                                                                                                                                                                                顺便请问下为何phpmyadmin无法访问?已安装但看到目录位于/data/wwwroot/default 是否要在nginx的conf中配置include?

                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                    @ 穷屌丝 /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/vhost/绑定域名.conf

                                                                                                                                                                                                                                                                  • 穷屌丝
                                                                                                                                                                                                                                                                    穷屌丝

                                                                                                                                                                                                                                                                    请问nginx如要添加模块的话是否可以直接进入/usr/local/nginx进行./configure? 还是另有更方便的脚本?

                                                                                                                                                                                                                                                                      • 穷屌丝
                                                                                                                                                                                                                                                                        穷屌丝

                                                                                                                                                                                                                                                                        @ 穷屌丝 已解决 关键是openssh和pcre的路径configure时要重新设置

                                                                                                                                                                                                                                                                      • wandell
                                                                                                                                                                                                                                                                        wandell

                                                                                                                                                                                                                                                                        这个安装后 安装laravel项目 执行composer install 提示没有mbstring 是没有这个扩展么

                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                            @ wandell 有安装的

                                                                                                                                                                                                                                                                              • wandell
                                                                                                                                                                                                                                                                                wandell

                                                                                                                                                                                                                                                                                @ yeho 按照你的教程安装完后 重启ubuntu 后多了4个用户 分别是memcached mysql redis www 这四个 这正常么 并且必须有么

                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                    @ wandell www是nginx、php用户运行,如果安装mysql必须是mysql用户,redis、memcached如果用root启动太危险。

                                                                                                                                                                                                                                                                              • Dk
                                                                                                                                                                                                                                                                                Dk

                                                                                                                                                                                                                                                                                4月份那个版本,安装mysql5.6之后,突然关机重启,mysql就启动不起来了
                                                                                                                                                                                                                                                                                the server quit without updating PID file (/data/mysql/mysql.pid).
                                                                                                                                                                                                                                                                                查了下,在my.cnf加了句
                                                                                                                                                                                                                                                                                language = /usr/local/mysql/share/english
                                                                                                                                                                                                                                                                                然后就能启动了
                                                                                                                                                                                                                                                                                这是日志
                                                                                                                                                                                                                                                                                https://gist.github.com/Dk2048/2152767489509de63dc9cc878addd5f6

                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                    @ Dk 一直没这个问题啊。

                                                                                                                                                                                                                                                                                  • 天雨
                                                                                                                                                                                                                                                                                    天雨

                                                                                                                                                                                                                                                                                    不知道为什么这几天在新安装机器上安装完后发现添加站点时选择用ssl证书时不会提示是否使用Let’s Encrypt,直接进入自签模式,这是什么情况?

                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                        @ 天雨 ./addons.sh 是否安装let’s encrypt客户端,如果有安装,这个是新加功能,使用let’s encrypt免费ssl证书!

                                                                                                                                                                                                                                                                                      • 空樱酱
                                                                                                                                                                                                                                                                                        空樱酱

                                                                                                                                                                                                                                                                                        请问下博主,nginx开机无法自动启动是什么问题?但是service nginx start正常,系统是Ubuntu 16.04
                                                                                                                                                                                                                                                                                        root@printemps:~# update-rc.d nginx defaults
                                                                                                                                                                                                                                                                                        insserv: warning: script ‘K01pureftpd’ missing LSB tags and overrides
                                                                                                                                                                                                                                                                                        insserv: warning: script ‘pureftpd’ missing LSB tags and overrides
                                                                                                                                                                                                                                                                                        root@printemps:~# update-rc.d nginx enable
                                                                                                                                                                                                                                                                                        insserv: warning: script ‘K01pureftpd’ missing LSB tags and overrides
                                                                                                                                                                                                                                                                                        insserv: warning: script ‘pureftpd’ missing LSB tags and override

                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                            @ 空樱酱 请不要后台点重启,直接命令行reboot试试!

                                                                                                                                                                                                                                                                                          • chosen1cwp
                                                                                                                                                                                                                                                                                            chosen1cwp

                                                                                                                                                                                                                                                                                            Configuring extensions
                                                                                                                                                                                                                                                                                            checking size of long… (cached) 8
                                                                                                                                                                                                                                                                                            checking size of int… (cached) 4
                                                                                                                                                                                                                                                                                            checking for int32_t… yes
                                                                                                                                                                                                                                                                                            checking for uint32_t… yes
                                                                                                                                                                                                                                                                                            checking for sys/types.h… (cached) yes
                                                                                                                                                                                                                                                                                            checking for inttypes.h… (cached) yes
                                                                                                                                                                                                                                                                                            checking for stdint.h… (cached) yes
                                                                                                                                                                                                                                                                                            checking for string.h… (cached) yes
                                                                                                                                                                                                                                                                                            checking for stdlib.h… (cached) yes
                                                                                                                                                                                                                                                                                            checking for strtoll… yes
                                                                                                                                                                                                                                                                                            checking for atoll… yes
                                                                                                                                                                                                                                                                                            checking for strftime… (cached) yes
                                                                                                                                                                                                                                                                                            checking which regex library to use… php
                                                                                                                                                                                                                                                                                            checking whether to enable LIBXML support… yes
                                                                                                                                                                                                                                                                                            checking libxml2 install dir… /usr
                                                                                                                                                                                                                                                                                            checking for xml2-config path…
                                                                                                                                                                                                                                                                                            configure: error: xml2-config not found. Please check your libxml2 installation.
                                                                                                                                                                                                                                                                                            make: *** 没有指明目标并且找不到 makefile。 停止。
                                                                                                                                                                                                                                                                                            make: *** 没有规则可以创建目标“install”。 停止。
                                                                                                                                                                                                                                                                                            PHP install failed, Please Contact the author!
                                                                                                                                                                                                                                                                                            已杀死
                                                                                                                                                                                                                                                                                            [root@iZ25n9xsrnxZ lnmp]# /bin/cp: 无法获取”sapi/fpm/init.d.php-fpm” 的文件状态(stat): 没有那个文件或目录
                                                                                                                                                                                                                                                                                            chmod: 无法访问”/etc/init.d/php-fpm”: 没有那个文件或目录
                                                                                                                                                                                                                                                                                            在 php-fpm 服务中读取信息时出错:没有那个文件或目录
                                                                                                                                                                                                                                                                                            在 php-fpm 服务中读取信息时出错:没有那个文件或目录
                                                                                                                                                                                                                                                                                            php-fpm: 未被识别的服务

                                                                                                                                                                                                                                                                                            ___________________________
                                                                                                                                                                                                                                                                                            安装时出现了上面所报的错误!此同时阿里云 操作系统: CentOS 6.5 64位

                                                                                                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                                                                                                @ chosen1cwp yum源问题吧,yum -y install libxml2-devel是否有安装?

                                                                                                                                                                                                                                                                                              • Alan
                                                                                                                                                                                                                                                                                                Alan

                                                                                                                                                                                                                                                                                                老大 出這個 error 之後卡住了

                                                                                                                                                                                                                                                                                                installing man3/SSL_write.3
                                                                                                                                                                                                                                                                                                make[2]: Leaving directory `/root/lnmp/src/openssl-1.0.2h’
                                                                                                                                                                                                                                                                                                make[1]: *** [../openssl-1.0.2h/.openssl/include/openssl/ssl.h] Error 2
                                                                                                                                                                                                                                                                                                make[1]: Leaving directory `/root/lnmp/src/tengine-2.1.1′
                                                                                                                                                                                                                                                                                                make: *** [build] Error 2
                                                                                                                                                                                                                                                                                                Tengine install failed, Please Contact the author!
                                                                                                                                                                                                                                                                                                Killed
                                                                                                                                                                                                                                                                                                [root@iZ6279ykigcZ lnmp]# /bin/cp: cannot stat `../init.d/Nginx-init-CentOS’: No such file or directory
                                                                                                                                                                                                                                                                                                error reading information on service nginx: No such file or directory
                                                                                                                                                                                                                                                                                                error reading information on service nginx: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /etc/init.d/nginx: No such file or directory
                                                                                                                                                                                                                                                                                                mv: cannot stat `/usr/local/tengine/conf/nginx.conf’: No such file or directory
                                                                                                                                                                                                                                                                                                /bin/cp: cannot stat `config/nginx.conf’: No such file or directory
                                                                                                                                                                                                                                                                                                grep: /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                include/tengine.sh: line 70: /usr/local/tengine/conf/proxy.conf: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                nginx: unrecognized service

                                                                                                                                                                                                                                                                                                • 林大壮
                                                                                                                                                                                                                                                                                                  林大壮

                                                                                                                                                                                                                                                                                                  请问博主,按照这一键包装好后,phpmyadmin的账户密码怎么创建呢?
                                                                                                                                                                                                                                                                                                  另外装好了上面的lanp还需要做什么优化吗,WordPress运行能快点。

                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                      @ 林大壮 不需要优化,phpmyadmin 用户名root,密码是你安装时候设置的数据库root密码

                                                                                                                                                                                                                                                                                                    • zelig
                                                                                                                                                                                                                                                                                                      zelig

                                                                                                                                                                                                                                                                                                      如何修改端口. 修改 vhost 下面的配置文件, 可是除了80 之外其他端口都无法使用(e.g 8000, 8080)

                                                                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                                                                          @ zelig 请自行修改配置文件,注意iptables

                                                                                                                                                                                                                                                                                                        • Qa
                                                                                                                                                                                                                                                                                                          Qa

                                                                                                                                                                                                                                                                                                          啥时也把OpenResty集成进去。

                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                              @ Qa 已经内置

                                                                                                                                                                                                                                                                                                                • Qa
                                                                                                                                                                                                                                                                                                                  Qa

                                                                                                                                                                                                                                                                                                                  @ yeho 不好意思,眼瞎。很久没更新lnmp一键包了。

                                                                                                                                                                                                                                                                                                              • Qa
                                                                                                                                                                                                                                                                                                                Qa

                                                                                                                                                                                                                                                                                                                现在 备份脚本是不是不能用了,只备份了网站文件。手动运行备份脚本提示输入数据库ROOT密码,在设置脚本里已经输入过了,运行备份脚本还需要输入。

                                                                                                                                                                                                                                                                                                                  • LeeJon
                                                                                                                                                                                                                                                                                                                    LeeJon

                                                                                                                                                                                                                                                                                                                    @ Qa 正遇到这个问题!不是数据库密码而是主机密码。

                                                                                                                                                                                                                                                                                                                      • Qa
                                                                                                                                                                                                                                                                                                                        Qa

                                                                                                                                                                                                                                                                                                                        @ LeeJon 也就是说需要服务器的ROOT密码么

                                                                                                                                                                                                                                                                                                                        • Qa
                                                                                                                                                                                                                                                                                                                          Qa

                                                                                                                                                                                                                                                                                                                          @ LeeJon 明显是数据库密码啊
                                                                                                                                                                                                                                                                                                                          Enter password:
                                                                                                                                                                                                                                                                                                                          ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

                                                                                                                                                                                                                                                                                                                      • fiye
                                                                                                                                                                                                                                                                                                                        fiye

                                                                                                                                                                                                                                                                                                                        菜鸟一个,刚学linux , 安装好, 项目放上去, 每次更改都要等一段时间才显示新的内容, 请问这是在哪里设置呢? 先拜谢~

                                                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                                                            @ fiye php cache,参考哦啊:https://oneinstack.com/question/server-cache-time-of-60-seconds-where-adjustments/

                                                                                                                                                                                                                                                                                                                              • fiye
                                                                                                                                                                                                                                                                                                                                fiye

                                                                                                                                                                                                                                                                                                                                @ yeho 非常感谢, 按照上面的方法己经解决了~ :mrgreen:

                                                                                                                                                                                                                                                                                                                            • LeeJon
                                                                                                                                                                                                                                                                                                                              LeeJon

                                                                                                                                                                                                                                                                                                                              crontab -e #
                                                                                                                                                                                                                                                                                                                              0 1 * * * cd ~/lnmp;./backup.sh > /dev/null 2>&1 &
                                                                                                                                                                                                                                                                                                                              – – – 貌似脚本有改变?执行./backup.sh这一步需要用到密码,定时那就不是这样写了吧?

                                                                                                                                                                                                                                                                                                                              • 大宝春
                                                                                                                                                                                                                                                                                                                                大宝春

                                                                                                                                                                                                                                                                                                                                sohu源挂了,安装不到mysql

                                                                                                                                                                                                                                                                                                                                • 深蓝
                                                                                                                                                                                                                                                                                                                                  深蓝

                                                                                                                                                                                                                                                                                                                                  明明是完整包,为何编译MySQL的时候仍然需要下载啊,一个lnmp环境做了3个多小时啊。。。有办法快点吗?

                                                                                                                                                                                                                                                                                                                                  • 烈维度
                                                                                                                                                                                                                                                                                                                                    烈维度

                                                                                                                                                                                                                                                                                                                                    做好环境后,然后吧域名解析到VPS后,访问显示403 forbidden?

                                                                                                                                                                                                                                                                                                                                    • WXE
                                                                                                                                                                                                                                                                                                                                      WXE

                                                                                                                                                                                                                                                                                                                                      你好,我现在网站做了301跳转后,访问WWW.XXX.COM跳转到的地址是XX.COM/index.php,如何去掉index.php后缀呢,程序是typecho
                                                                                                                                                                                                                                                                                                                                      还有一个问题就是如何不让URL忽略大小写?

                                                                                                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                                                                                                          @ WXE vhost.sh 绑定域名时候,xx.com 更多绑定域名选www.xx.com 设置301跳转,即可。linux是区分大小写的

                                                                                                                                                                                                                                                                                                                                        • 亲

                                                                                                                                                                                                                                                                                                                                          你好,请问有没有低版本的。
                                                                                                                                                                                                                                                                                                                                          服务器端运行环境推荐
                                                                                                                                                                                                                                                                                                                                          ·php版本5.3.29
                                                                                                                                                                                                                                                                                                                                          ·Mysql版本5.0及以上5.3以下
                                                                                                                                                                                                                                                                                                                                          ·空间安装zend
                                                                                                                                                                                                                                                                                                                                          ·空间支持文件锁功能
                                                                                                                                                                                                                                                                                                                                          ·开启GD功能
                                                                                                                                                                                                                                                                                                                                          ·Mysql函数支持mbstring、iconv、fsockopen
                                                                                                                                                                                                                                                                                                                                          谢谢!

                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                              @ 支持的

                                                                                                                                                                                                                                                                                                                                                • cai
                                                                                                                                                                                                                                                                                                                                                  cai

                                                                                                                                                                                                                                                                                                                                                  @ yeho 配置文件和根目录都在哪里呢?我是菜鸟,nginx的配置文件不再etc下面吗?(我就知道这些地方)。谢谢站长

                                                                                                                                                                                                                                                                                                                                              • Worldlink
                                                                                                                                                                                                                                                                                                                                                Worldlink

                                                                                                                                                                                                                                                                                                                                                又是一篇好文章收藏了!

                                                                                                                                                                                                                                                                                                                                                • 呼吸
                                                                                                                                                                                                                                                                                                                                                  呼吸

                                                                                                                                                                                                                                                                                                                                                  请问下,安装完成之后我参考网上一些教程,配置PHP oci 扩展,连接Oracle 怎么一直不成功?? (在 oci 安装目录下,编译就通过不了)
                                                                                                                                                                                                                                                                                                                                                  网上找了很多帖子,都没管用.
                                                                                                                                                                                                                                                                                                                                                  可以配置吗,如何配置呢?
                                                                                                                                                                                                                                                                                                                                                  有相关的帖子吗?

                                                                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                                                                      @ 呼吸 参考:https://oneinstack.com/question/php-install-oracle-oci8-extension-not-responding/

                                                                                                                                                                                                                                                                                                                                                    • wulixue
                                                                                                                                                                                                                                                                                                                                                      wulixue

                                                                                                                                                                                                                                                                                                                                                      希望可以在安装的时候 可以选择安装https

                                                                                                                                                                                                                                                                                                                                                      • wulixue
                                                                                                                                                                                                                                                                                                                                                        wulixue

                                                                                                                                                                                                                                                                                                                                                        哇 居然已经集成ssl的选项
                                                                                                                                                                                                                                                                                                                                                        :mrgreen: :mrgreen:

                                                                                                                                                                                                                                                                                                                                                        • wulixue
                                                                                                                                                                                                                                                                                                                                                          wulixue

                                                                                                                                                                                                                                                                                                                                                          呃今天拿个板瓦工又用你这一键包,。。一切正常顺利,但是到了安装程序的时候 。用localhost,提示链接不到数据库。。呃 这是嘛情况呃装的是typecho

                                                                                                                                                                                                                                                                                                                                                          难道是我安装了https的原因?还没买证书中!

                                                                                                                                                                                                                                                                                                                                                          • 萌污の猫太郎
                                                                                                                                                                                                                                                                                                                                                            萌污の猫太郎

                                                                                                                                                                                                                                                                                                                                                            请问lnmp的Apache怎么重启,我在root文件夹里面输入service httpd restart,但是显示httpd: unrecognized service

                                                                                                                                                                                                                                                                                                                                                            • pengjianwei
                                                                                                                                                                                                                                                                                                                                                              pengjianwei

                                                                                                                                                                                                                                                                                                                                                              楼主您好,我想请问一下,我在搬瓦工上跟着步骤装完了lnmp,然后phpmyadmin也能进去,但是为什么不能用navicat连接到数据库?每次连接都会报错,说“cant’t connect to MySQL server on”

                                                                                                                                                                                                                                                                                                                                                              • Qa
                                                                                                                                                                                                                                                                                                                                                                Qa

                                                                                                                                                                                                                                                                                                                                                                啥时能加入Postfix 和Dovecot的安卓。

                                                                                                                                                                                                                                                                                                                                                                • yyii
                                                                                                                                                                                                                                                                                                                                                                  yyii

                                                                                                                                                                                                                                                                                                                                                                  站长您好,请教如下:我安装的是lnmpa。请问如何设置用ip:端口号,访问不同目录下的网站呢。我配置了一个***.***.com 域名指向/data/wwwroot/*** 网站。修改了httpd(添加了Listen ip:端口号),iptables(开放了端口号),以及vhost/***.***.com.conf文件(修改了VirtualHost *:端口号,ServerName ip:端口号)。service httpd restart . 但访问ip:端口号。报错了。非常谢谢。

                                                                                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                                                                                      @ yyii nginx端口没修改吧

                                                                                                                                                                                                                                                                                                                                                                        • yyii
                                                                                                                                                                                                                                                                                                                                                                          yyii

                                                                                                                                                                                                                                                                                                                                                                          @ yeho 谢谢站长。写上面时,我没改。后来,想到就去改 nginx/***.***.com.conf. 把 里面的80,88都改为 新端口。还是没成功。不知哪里错了。

                                                                                                                                                                                                                                                                                                                                                                      • zyx1990zm
                                                                                                                                                                                                                                                                                                                                                                        zyx1990zm

                                                                                                                                                                                                                                                                                                                                                                        ./include/memory.sh: line 46: `Make-swapfile’: not a valid identifier
                                                                                                                                                                                                                                                                                                                                                                        我安装的时候报这个错,求解

                                                                                                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                                                                                                            @ zyx1990zm 请勿sh install.sh或者bash install.sh这样执行

                                                                                                                                                                                                                                                                                                                                                                          • hanabi
                                                                                                                                                                                                                                                                                                                                                                            hanabi

                                                                                                                                                                                                                                                                                                                                                                            ftp连接401
                                                                                                                                                                                                                                                                                                                                                                            [ERROR] Unable to read the indexed puredb file (or old format detected) – Try pure-pw mkdb

                                                                                                                                                                                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                                                                                                                                                                                @ hanabi 请确认pureftpd是否已经启动

                                                                                                                                                                                                                                                                                                                                                                                  • hanabi
                                                                                                                                                                                                                                                                                                                                                                                    hanabi

                                                                                                                                                                                                                                                                                                                                                                                    @ yeho 已经启动但无法创建任何用户
                                                                                                                                                                                                                                                                                                                                                                                    创建成功但是,查看用户列表没有任何用户。(数据库问题?)
                                                                                                                                                                                                                                                                                                                                                                                    已用oneinstack重装解决。

                                                                                                                                                                                                                                                                                                                                                                                • db_ming
                                                                                                                                                                                                                                                                                                                                                                                  db_ming

                                                                                                                                                                                                                                                                                                                                                                                  安装lnmp成功,框架路径无法访问。是需要配置吗?

                                                                                                                                                                                                                                                                                                                                                                                  • db_
                                                                                                                                                                                                                                                                                                                                                                                    db_

                                                                                                                                                                                                                                                                                                                                                                                    装完后lnmp,访问多层路径就报错Access denied.

                                                                                                                                                                                                                                                                                                                                                                                    • loren
                                                                                                                                                                                                                                                                                                                                                                                      loren

                                                                                                                                                                                                                                                                                                                                                                                      是不是和锐速有冲突?装了锐速以后就直接死掉,重启服务器以后,可以PING通,但是SSH登陆不上了,之前的一些服务也无法使用了。

                                                                                                                                                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                                                                                                                                                          @ loren 建议现在lnmp再安装锐速,请注意iptables

                                                                                                                                                                                                                                                                                                                                                                                        • Gilgamel
                                                                                                                                                                                                                                                                                                                                                                                          Gilgamel

                                                                                                                                                                                                                                                                                                                                                                                          请问当输入./backup.sh这个命令备份的时候出现了以下的提示该怎么处理?谢谢
                                                                                                                                                                                                                                                                                                                                                                                          mysql: [Warning] Using a password on the command line interface can be insecure.

                                                                                                                                                                                                                                                                                                                                                                                          • Innkeeper
                                                                                                                                                                                                                                                                                                                                                                                            Innkeeper

                                                                                                                                                                                                                                                                                                                                                                                            博主大大您好,我想问一下,这个一键包的PHPMYADMIN的界面怎么调用啊,我用平常的方法,http://域名/phpmyadmin,进不去啊 :?:

                                                                                                                                                                                                                                                                                                                                                                                            • yanping
                                                                                                                                                                                                                                                                                                                                                                                              yanping

                                                                                                                                                                                                                                                                                                                                                                                              ngx_pagespeed.sh 被取消了吗?

                                                                                                                                                                                                                                                                                                                                                                                                • yeho
                                                                                                                                                                                                                                                                                                                                                                                                  yeho

                                                                                                                                                                                                                                                                                                                                                                                                  @ yanping 之前测试不稳定,有时候cpu 100% 宕机,还不如直接上cdn

                                                                                                                                                                                                                                                                                                                                                                                                • kx
                                                                                                                                                                                                                                                                                                                                                                                                  kx

                                                                                                                                                                                                                                                                                                                                                                                                  debian8 请问管理员如何卸载lnmp默认装的iptables

                                                                                                                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                                                                                                                      @ kx 删除/etc/network/if-pre-up.d/iptables即可

                                                                                                                                                                                                                                                                                                                                                                                                    • 采觅博主
                                                                                                                                                                                                                                                                                                                                                                                                      采觅博主

                                                                                                                                                                                                                                                                                                                                                                                                      卧槽,终于更新了,好激动 :wink:

                                                                                                                                                                                                                                                                                                                                                                                                      • 愤怒的大白兔
                                                                                                                                                                                                                                                                                                                                                                                                        愤怒的大白兔

                                                                                                                                                                                                                                                                                                                                                                                                        Connection closed by foreign host
                                                                                                                                                                                                                                                                                                                                                                                                        出现这个问题是什么原因。
                                                                                                                                                                                                                                                                                                                                                                                                        每次都是安装到一大半就出现这个
                                                                                                                                                                                                                                                                                                                                                                                                        是服务器的原因吗?

                                                                                                                                                                                                                                                                                                                                                                                                        • xiaoz
                                                                                                                                                                                                                                                                                                                                                                                                          xiaoz

                                                                                                                                                                                                                                                                                                                                                                                                          想问一下mysql命令怎么用啊 新手
                                                                                                                                                                                                                                                                                                                                                                                                          service mysqld status可以使用
                                                                                                                                                                                                                                                                                                                                                                                                          但是直接mysql找不到命令

                                                                                                                                                                                                                                                                                                                                                                                                          • Kim
                                                                                                                                                                                                                                                                                                                                                                                                            Kim

                                                                                                                                                                                                                                                                                                                                                                                                            您好,请问一下,能在macOS上使用吗?

                                                                                                                                                                                                                                                                                                                                                                                                            • chosen 1
                                                                                                                                                                                                                                                                                                                                                                                                              chosen 1

                                                                                                                                                                                                                                                                                                                                                                                                              我的ubuntu里面还没有配置好jdk?安装这个的时候因为单独安装tomcat是为他设置java路劲的?用这个懒人安装后还需要安装jdk吗?如果需要,那我安装配置好了jdk是不是还要重新去配置Tomcat?

                                                                                                                                                                                                                                                                                                                                                                                                                • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                  yeho

                                                                                                                                                                                                                                                                                                                                                                                                                  @ chosen 1 全自动,请用oneinstack自带tomcat、jdk和nginx结合,动静分离

                                                                                                                                                                                                                                                                                                                                                                                                                • laowang
                                                                                                                                                                                                                                                                                                                                                                                                                  laowang

                                                                                                                                                                                                                                                                                                                                                                                                                  https://my.oschina.net/u/1403358/blog/753764
                                                                                                                                                                                                                                                                                                                                                                                                                  看看这个是不是和你的一样…

                                                                                                                                                                                                                                                                                                                                                                                                                  • 小田哥哥
                                                                                                                                                                                                                                                                                                                                                                                                                    小田哥哥

                                                                                                                                                                                                                                                                                                                                                                                                                    请问才安装完成
                                                                                                                                                                                                                                                                                                                                                                                                                    运行 ./pureftpd_vhost.sh 新建FTP用户
                                                                                                                                                                                                                                                                                                                                                                                                                    提示:FTP server does not exist! 不存在咋办?
                                                                                                                                                                                                                                                                                                                                                                                                                    默认没有安装FTP吗?

                                                                                                                                                                                                                                                                                                                                                                                                                    • beiqing
                                                                                                                                                                                                                                                                                                                                                                                                                      beiqing

                                                                                                                                                                                                                                                                                                                                                                                                                      ftp新建用户./pureftpd_vhost.sh 不能用 状态报错:(?@?) [ERROR] Unable to find the ‘ftp’ account

                                                                                                                                                                                                                                                                                                                                                                                                                      • 老赵
                                                                                                                                                                                                                                                                                                                                                                                                                        老赵

                                                                                                                                                                                                                                                                                                                                                                                                                        你好!我今天听别人介绍说你这个lnmp搭建wordpress比较好。我今天试了一下,的确很好。但是我遇到个问题,我直接重启VPS过后就什么都不能使用了,这是怎么回事呢?

                                                                                                                                                                                                                                                                                                                                                                                                                        • Qa
                                                                                                                                                                                                                                                                                                                                                                                                                          Qa

                                                                                                                                                                                                                                                                                                                                                                                                                          请问在ubuntu 16上安装了此包,一些端口无法访问了。关闭了UFW防火墙也没用。此包启用了别的什么防火墙机制吗?(80端口正常访问)

                                                                                                                                                                                                                                                                                                                                                                                                                          • FoxHunter
                                                                                                                                                                                                                                                                                                                                                                                                                            FoxHunter

                                                                                                                                                                                                                                                                                                                                                                                                                            很强大,很不错的安装脚本,一直在使用。要不老大考虑下把开源中国上ltnmp中的 phalcon,yaf,swoole,composer 这些插件安装脚本也集成进去。那oneinstack就真包罗万象了啊!哈哈! :razz: :mrgreen:

                                                                                                                                                                                                                                                                                                                                                                                                                            • bowuting
                                                                                                                                                                                                                                                                                                                                                                                                                              bowuting

                                                                                                                                                                                                                                                                                                                                                                                                                              我在阿里云上用了这套脚本,mysql如何远程连接,看了很多教程,Navicat 连了很久报错 不知道是哪里的问题

                                                                                                                                                                                                                                                                                                                                                                                                                              • 1Q94
                                                                                                                                                                                                                                                                                                                                                                                                                                1Q94

                                                                                                                                                                                                                                                                                                                                                                                                                                老大,默认配置ssl无效,但是看github上有Add Let’s Encrypt?怎么没有具体实现。

                                                                                                                                                                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                    @ 1Q94 ./addons.sh 安装let’s Encrypt客户端,vhost.sh ssl选择y,会自动出现Let’s Encrypt选项

                                                                                                                                                                                                                                                                                                                                                                                                                                  • wandell
                                                                                                                                                                                                                                                                                                                                                                                                                                    wandell

                                                                                                                                                                                                                                                                                                                                                                                                                                    这套环境里面 不包含fileinfo扩展包吧 :mrgreen:

                                                                                                                                                                                                                                                                                                                                                                                                                                    • Andrew
                                                                                                                                                                                                                                                                                                                                                                                                                                      Andrew

                                                                                                                                                                                                                                                                                                                                                                                                                                      能不能添加下piwigo的nginx伪静态?
                                                                                                                                                                                                                                                                                                                                                                                                                                      http://piwigo.org/forum/viewtopic.php?pid=162898
                                                                                                                                                                                                                                                                                                                                                                                                                                      不懂,整了多次,不成功

                                                                                                                                                                                                                                                                                                                                                                                                                                      • 空樱酱
                                                                                                                                                                                                                                                                                                                                                                                                                                        空樱酱

                                                                                                                                                                                                                                                                                                                                                                                                                                        请问下没有编译webp相关的吗?提示 Call to undefined function imagewebp()
                                                                                                                                                                                                                                                                                                                                                                                                                                        http://php.net/manual/zh/function.imagewebp.php

                                                                                                                                                                                                                                                                                                                                                                                                                                        • 采觅随记
                                                                                                                                                                                                                                                                                                                                                                                                                                          采觅随记

                                                                                                                                                                                                                                                                                                                                                                                                                                          额,话说我一直都想问一下,怎么升级oneinstack?毕竟博主大大经常增加新功能。不过是不是只能卸载重装,因为严格来讲oneinstack就是一个能智能部署WEB环境的批处理脚本,执行新的脚本就是重装整个WEB环境了。我也好奇你有没有经常重装你的网站环境 :evil:

                                                                                                                                                                                                                                                                                                                                                                                                                                          • 佛子演示
                                                                                                                                                                                                                                                                                                                                                                                                                                            佛子演示

                                                                                                                                                                                                                                                                                                                                                                                                                                            AliSQL怎么管理呢?跟mysql一样吗? mysql5.6的数据迁移过去会完美兼容么?

                                                                                                                                                                                                                                                                                                                                                                                                                                            • Biebb博客
                                                                                                                                                                                                                                                                                                                                                                                                                                              Biebb博客

                                                                                                                                                                                                                                                                                                                                                                                                                                              发现大神一枚!

                                                                                                                                                                                                                                                                                                                                                                                                                                              • Lee
                                                                                                                                                                                                                                                                                                                                                                                                                                                Lee

                                                                                                                                                                                                                                                                                                                                                                                                                                                因为开发需要能提供2个版本的php支持吗?主要是为了同时使用5.x 和7,然后使用nginx 来控制具体调用哪个版本。

                                                                                                                                                                                                                                                                                                                                                                                                                                                一键包很好用感谢。

                                                                                                                                                                                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                    @ Lee 参考:https://linuxeye.com/441.html

                                                                                                                                                                                                                                                                                                                                                                                                                                                  • suai
                                                                                                                                                                                                                                                                                                                                                                                                                                                    suai

                                                                                                                                                                                                                                                                                                                                                                                                                                                    我是用搬瓦工的一键SS,然后用了kcptun,接着按照楼主的教程安装lnmp,其他均是默认,安装好以后,ss和kcptun就不能用了。。。
                                                                                                                                                                                                                                                                                                                                                                                                                                                    不知道问题出在哪里,但是之前军哥的一键lnmp就没有这种情况

                                                                                                                                                                                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ suai 请注意iptables,ps:安装包中也有shadowsocks

                                                                                                                                                                                                                                                                                                                                                                                                                                                      • pppkq
                                                                                                                                                                                                                                                                                                                                                                                                                                                        pppkq

                                                                                                                                                                                                                                                                                                                                                                                                                                                        在REHL7上安装后,mysql服务不能自动启动,启动提示
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [root@elk01 mysql]# systemctl start mysqld
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [root@elk01 mysql]# systemctl status mysqld.service
                                                                                                                                                                                                                                                                                                                                                                                                                                                        ● mysqld.service – LSB: start and stop MySQL
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Loaded: loaded (/etc/rc.d/init.d/mysqld)
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Active: failed (Result: exit-code) since Thu 2016-12-15 17:17:13 CST; 1min 12s ago
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Docs: man:systemd-sysv-generator(8)
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Process: 13153 ExecStop=/etc/rc.d/init.d/mysqld stop (code=exited, status=0/SUCCESS)
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Process: 14826 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=1/FAILURE)

                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: Starting MySQL.161215 17:17:13 mysqld_safe The file /usr/local/mysql/bin/mysqld
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: does not exist or is not executable. Please cd to the mysql installation
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: directory and restart this script from there as follows:
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: ./bin/mysqld_safe&
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com mysqld[14826]: ERROR! The server quit without updating PID file (/data/soft/mysql/data/mysql.pid).
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com systemd[1]: mysqld.service: control process exited, code=exited status=1
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com systemd[1]: Failed to start LSB: start and stop MySQL.
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com systemd[1]: Unit mysqld.service entered failed state.
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Dec 15 17:17:13 elk01.test.com systemd[1]: mysqld.service failed.
                                                                                                                                                                                                                                                                                                                                                                                                                                                        看了权限也没太大问题
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [root@elk01 mysql]# ll
                                                                                                                                                                                                                                                                                                                                                                                                                                                        total 60
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 2 root root 4096 Dec 15 15:41 bin
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -rw-r–r– 1 root 31415 17987 Nov 28 20:32 COPYING
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 5 mysql mysql 4096 Dec 15 17:16 data
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 2 root root 52 Dec 15 15:41 docs
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 3 root root 4096 Dec 15 15:41 include
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -rw-r–r– 1 root 31415 301 Nov 28 20:32 INSTALL-BINARY
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 3 root root 4096 Dec 15 15:41 lib
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 4 root root 28 Dec 15 15:41 man
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 10 root root 4096 Dec 15 15:41 mysql-test
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -rw-r–r– 1 root 31415 2496 Nov 28 20:32 README
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 2 root root 29 Dec 15 15:41 scripts
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 27 root root 4096 Dec 15 15:41 share
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 4 root root 4096 Dec 15 15:41 sql-bench
                                                                                                                                                                                                                                                                                                                                                                                                                                                        drwxr-xr-x 2 root root 4096 Dec 15 15:41 support-files

                                                                                                                                                                                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                            @ pppkq 看下/data/mysql/mysql-error.log 吧

                                                                                                                                                                                                                                                                                                                                                                                                                                                          • pppkq
                                                                                                                                                                                                                                                                                                                                                                                                                                                            pppkq

                                                                                                                                                                                                                                                                                                                                                                                                                                                            请问linux终端命令行的颜色设置是在哪个文件做的修改?因为在其他地方看到是修改.bashrc或/etc/profile,但是装了后发现这两个地方并没有相关的修改,请教下是改的哪个地方呢?

                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 天外飞仙
                                                                                                                                                                                                                                                                                                                                                                                                                                                              天外飞仙

                                                                                                                                                                                                                                                                                                                                                                                                                                                              有没有关于snmp相关的配置?

                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 小苏
                                                                                                                                                                                                                                                                                                                                                                                                                                                                小苏

                                                                                                                                                                                                                                                                                                                                                                                                                                                                tengine 出现这个No input file specified. 怎么解决呀?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    @ 小苏 代码位置没放对吧

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 小苏
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        小苏

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ yeho 不是的,别的页面都能打开,就商户登录页面打不开的!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 小K风云
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      小K风云

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      我环境安装完成之后,发现 mysql.sock 找不到了。这个问题,一般如何解决呢? find 命令查找 mysql.sock 都找不到。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • video.verycdd.com
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        video.verycdd.com

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        这一键包我在网易云上面安装测试失败啊,无奈安装了LNMP.ORG的一键包。博主看看能不能解决啊。我好换回这个一键包

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 233craft
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          233craft

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          输入Mysql的时候是明文的,可以修改成隐藏的吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Kirito
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Kirito

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            可以给Mirrors.linuxeye.com建立一个镜像吗,做下分发2333

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 大优
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              大优

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              博主技术牛B.为什么我看完觉得这个脚本会把我变成傻子..
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              运维都用这样的脚本.就没活干了吧…
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              哈哈.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              说话有点直..

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • xiaoshen
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                xiaoshen

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                my.ini 数据库配置文件在什么地方?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • bigdata
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  bigdata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  这是为何?老是出现这个错误:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[3]: Entering directory `/home/down/lnmp/src/openssl-1.0.2k’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[4]: Entering directory `/home/down/lnmp/src/openssl-1.0.2k’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  /bin/ld: libcrypto.a(rsaz_exp.o): relocation R_X86_64_32 against `.rodata’ can not be used when making a shared object; recompile with -fPIC
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  libcrypto.a(rsaz_exp.o): error adding symbols: Bad value
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  collect2: error: ld returned 1 exit status
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[4]: *** [link_a.gnu] Error 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[4]: Leaving directory `/home/down/lnmp/src/openssl-1.0.2k’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[3]: *** [do_linux-shared] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[3]: Leaving directory `/home/down/lnmp/src/openssl-1.0.2k’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[2]: *** [libcrypto.so.1.0.0] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[2]: Leaving directory `/home/down/lnmp/src/openssl-1.0.2k’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[1]: *** [shared] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make[1]: Leaving directory `/home/down/lnmp/src/openssl-1.0.2k/crypto’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  make: *** [build_crypto] Error 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  /home/down/lnmp/src /home/down/lnmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  openssl-1.0.2 install failed, Please contact the author!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • plmkld
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    plmkld

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    环境是lamp apache2.4+php5.6的开启ssl
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    安装owncloud出现
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    PHP模块’文件信息’丢失. 我们强烈建议启用此模块以便mime类型检测取得最佳结果.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    请问这个模块如何开启

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 灰色空间
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      灰色空间

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      安装环境lnmp,PHP Version 5.6.30 mysql 5.6 我装了个magento2.1 用的magento2 rewrite 站点没法访问,空白页,是500错误,请问怎么解决

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • jinglingzs
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        jinglingzs

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        wget http://aliyun-oss.linuxeye.com/lnmp-full.tar.gz #阿里云内网下载
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        这个无法下载哦,什么情况

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • baobao
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          baobao

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Debian7 系统,lnmp环境,服务器上有一个网站,最近想在上面安装Shadowsocks做代理,测试了各种脚本,都是安装成功,但是无法连接,不知道怎么回事?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ baobao 提供商后台端口是否打开,比如阿里云安全组

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 銮尊
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              銮尊

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              反复安装了好几次,都是提示pure-ftpd-1.0.45.tar.gz 下载失败。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              最后手动下载解决问题

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  @ 銮尊 建议下载oneinstack-full.tar.gz 包含源码版本

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • hack
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  hack

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  pure-ftpd-1.0.45.tar.gz 用ftp用户名登陆成功了,无法显示远程路径,另一台服务器装的是pure-ftpd-1.0.43.tar.gz ,可以正常显示

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • hack
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      hack

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @ hack 已解决,把被动模式改成主动模式就可以了。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • FANTASY
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      FANTASY

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      请问,在justping里面 大部分国家被Packets lost (100%) 原因是?谢谢

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          @ FANTASY iptables限制ping频率,可自己删除相关规则

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 菊部
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          菊部

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          感谢分享 谢谢付出

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • kx
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            kx

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            想问一下,怎么升级oneinstack?目前用的是去年的安装包,怎么升级新版本一键包啊

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                @ kx 备份options.conf,重新下载oneinstack,将options.conf参数写入新options.conf中

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 魂

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                博主你好,screen -r lnmp无法重新连接安装窗口,应该是screen -R lnmp

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • lofky
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  lofky

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  你好,博主,使用了你的一键安装包,向你表示感谢

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  然后问一个小问题,php错误日志在哪个目录下?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  我遇到了这么一个情况,用的是lnmp,程序是discuz3.2,所有安装好之后,测试网站发现,在用户post新帖子提交的时候,会发生500内部错误,但是在wwwlog下面查看error_apache_log,里面没有对应的错误,所以想查看下php错误日志。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  在php探针里面看到了——–脚本超时时间(max_execution_time): 5秒,,,,怀疑这个时间可能太短了,从而造成500错误????

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @ lofky 500是内部错误,打开php错误日志,或者打开程序debug看看

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • dd
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      dd

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      请问管理员 直接使用《OneinStack》安装OpenResty之后 自带了防cc吗

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          @ dd 参考:https://linuxeye.com/453.html 加载waf.lua即可

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Vc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Vc

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          magento2 伪静态 404 的问题, 没有跳转magento内部404页面。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          却跳转到了 nginx 404 页面了 这个问题需要怎么解决呢?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ Vc error_page 404 403 /errors/404.php; 更改具体位置404页面试试

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • ∮秋风∮
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ∮秋风∮

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              从2月群主更新以后,加入了openssl独立安装脚本以后,lamp及lnmp使用openssl进行通讯的问题不断,比如使用php stream_socket_client等函数将出现初现套接字失败,希望群主及时FIXED。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                很强大的脚本 原来shell也可以这么溜

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • tufu
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  tufu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  一键安装果然十分强大,感谢大神。还有个小问题,就是现在的项目需要php_fileinfo拓展,现在的整合版里貌似没有这个,该咋整? :?:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @ tufu ./addons.sh 安装下fileinfo即可

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Lee
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Lee

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          @ yeho 果然 addons.sh 很好用,还在想 fileinfo 为啥没有呢,能问下 为啥fileinfo 不是默认加载吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ Lee 参考:https://oneinstack.com/question/oneinstack-how-to-support-the-fileinfo/

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • tufu
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          tufu

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          请问管理员,虚拟主机配置按照./vhost.sh的流程走,走完后发现虚拟主机不能用。。请问除了这个流程外,虚拟主机还有什么其他的配置吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • MarTin.DuYunTao
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            MarTin.DuYunTao

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            管理员麻烦查看下,腾讯云下载下不了。2017-6-2

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 阿风
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              阿风

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              管理员什么时候加上默认nginx Realip模块支持啊

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                我用虚拟机安装好以后,用雅黑PHP探针测了一下,发现虚拟机分配的9G多银盘空间全部被用完,请问哪些文件可以删除释放一下硬盘内存?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • root
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  root

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  大佬我想关闭21ftp端口,我尝试关掉没有成功~

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    脚本很强大

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      请问大大,sendmail这个默认配置了吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        很NB的博客。 赞一个【表情】

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • xiaoz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          xiaoz

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          建议老大在后期的版本中将subs_filter模块加进去,反代的时候关键词替换有需求。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ xiaoz 安装前 options.conf nginx_modules_options可以加模块

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • xiaoz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  xiaoz

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  @ yeho 好的,谢谢,我看看去。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • peter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      peter

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @ xiaoz 怎么样 你写好了吗?可以发个例子看看么?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • peter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      peter

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @ yeho 那这个怎么写呢?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      给个例子吧?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 海之恋
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    海之恋

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    参照教程配置的lnmp,完事后配置opencart,但在邮件部分卡住了,无论在opencart后台选择mail,还是SMTP,都不能发送邮件。后来在系统提供的默认 Proberv页面进行邮件测试,提示发送邮件失败。请教老大该更改哪里的设置才能解决问题?谢谢!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ 海之恋 默认没有在服务器安装smtp服务器,需要自己安装或者建议利用第三发服务器安装(注意:有些?供应商,如阿里默认禁止了25,需要发工单开启)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 虾虾
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        虾虾

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        你好,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        我使用的是 Debian 7.6 32-bit 系统,严格安装步骤来,为什么在使用 ./vhost.sh 命令, 会提示 Error! Web server not found!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        呢?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 司马清源
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          司马清源

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          希望老大把ImageMagick/imagick、pureftpd、zendopcache、fail2ban升级更新脚本也加入到upgrade.sh脚本菜单中;此外,optimize.sh处理器优化脚本现在(2017.7.1版本)还需要使用吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • khan
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            khan

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            如何升级到memcached3.0.3 ???

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            这个意见安装包,似乎不能升级.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            自己尝试手动安装,似乎不行。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                @ khan memcached3.0.3 只支持php7.x 请看:http://pecl.php.net/package-changelog.php?package=memcached&release=3.0.3

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 消灭
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                消灭

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                老哥,好久弄个docker的阿?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 小白
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  小白

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  运维大神就是大神。?写的太细致了

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 小白
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    小白

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    大佬我想问下搭建完成后怎么配备SSL?有相关教程吗?比如startssl let’s 沃通的 。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ 小白 vhost.sh ssl选择y,把购买的证书重命名为www.example.com.crt(有限获取的证书.pem,重命名即可) http://www.example.com.key 替换服务器上/usr/local/nginx/conf/ssl/www.example.com.{crt,key},重启nginx即可

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • king
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        king

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        请问mysql配置文件在哪里

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Mr
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Mr

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          建议添加quota选项,避免部分网站占用太多硬盘影响别的网站

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • peter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            peter

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            我看了 @xiaoz 的问题 也看了老大的回答
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            我也看了 options.conf文件中
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            # Add modules
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            nginx_modules_options=”
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            但是不知道怎么写引号里面 我已经把我想要的模块下载下来了 nginx-rtmp-module
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            主要就是不知道引号里怎么写 才可以把nginx-rtmp-module 加进去
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            不知道怎么写

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • peter
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                peter

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                @ peter –add-module=../nginx-rtmp-module/
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                直接这样写可以吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 小白
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                小白

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                大佬有没有apache配置htaccess说明

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 相視壹笑
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  相視壹笑

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  phpmyadmin 的访问路径是多少 师兄

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • 魂

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    博主你好,Nginx突然不监听443端口了,该从什么地方查原因

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • smile
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      smile

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      老大,Ubuntu 16.04.3 安装Tengine报错了!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      make[2]: Leaving directory ‘/usr/local/src/lnmp/src/openssl-1.0.2l’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      objs/Makefile:1412: recipe for target ‘../openssl-1.0.2l/.openssl/include/openssl/ssl.h’ failed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      make[1]: *** [../openssl-1.0.2l/.openssl/include/openssl/ssl.h] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      make[1]: Leaving directory ‘/usr/local/src/lnmp/src/tengine-2.1.2’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Makefile:8: recipe for target ‘build’ failed
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      make: *** [build] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Tengine install failed, Please Contact the author!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Killed

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        最新版的安装后不能访问,ip地址打不开,安装网站网页也打不开,不知道是怎么回事,求解!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 赞赞资源网
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          赞赞资源网

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          64m的vps可以安装吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 拥有大牛梦想的小白
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            拥有大牛梦想的小白

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            博主,您好。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            请问现在的定时备份脚本已经不支持阿里云OSS了嘛?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 司马清源
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              司马清源

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              使用oneinstack/backup_setup.sh设置备份参数,提示下面的错误,还需要cos appid,备份脚本不支持阿里云服务器备份数据吗?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              sed: can’t read /usr/local/python/lib/python2.7/site-packages/coscmd/cos_client.py: No such file or directory

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • leafans
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                leafans

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                几个建议:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                1. 防跨站文件读取:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                /usr/local/nginx/conf/fastcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                fastcgi_param PHP_ADMIN_VALUE “open_basedir=$document_root/:/tmp/:/proc/”;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                2. 虚拟主机多域名情况下强制跳转HTTPS,$server_name改成$host防止跳转到第1个域名:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if ($ssl_protocol = “”) { return 301 https://$host$request_uri; }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                3. BUG->使用 https://ip 访问时会跑到第1个虚拟主机,而不是default主机。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                4. 增加->创建虚拟主机时,提示创建对应数据库和同名用户。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                5. 访问 .php 文件无法正常显示配置的404页。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                解决:匹配.php请求的地方增加 try_files $uri =404;

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • 请输入您的QQ号
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  请输入您的QQ号

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  e,我一开始安装错了,重新启动了一遍,403了,怎么办啊?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • davidtall
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    davidtall

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    tengine 编译出错,如何解决?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[4]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l/engines/ccgost’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l/engines’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    making install in apps…
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Entering directory `/root/oneinstack/src/openssl-1.0.2l/apps’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: warning: jobserver unavailable: using -j1. Add `+’ to parent make rule.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing openssl
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing CA.sh
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing CA.pl
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing tsget
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l/apps’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    making install in test…
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Entering directory `/root/oneinstack/src/openssl-1.0.2l/test’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: warning: jobserver unavailable: using -j1. Add `+’ to parent make rule.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Nothing to be done for `install’.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l/test’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    making install in tools…
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Entering directory `/root/oneinstack/src/openssl-1.0.2l/tools’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: warning: jobserver unavailable: using -j1. Add `+’ to parent make rule.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[3]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l/tools’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing libcrypto.a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    installing libssl.a
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    cp libcrypto.pc /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    chmod 644 /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig/libcrypto.pc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    cp libssl.pc /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    chmod 644 /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig/libssl.pc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    cp openssl.pc /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    chmod 644 /root/oneinstack/src/tengine-2.1.2/../openssl-1.0.2l/.openssl/lib/pkgconfig/openssl.pc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[2]: Leaving directory `/root/oneinstack/src/openssl-1.0.2l’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[1]: *** [../openssl-1.0.2l/.openssl/include/openssl/ssl.h] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make[1]: Leaving directory `/root/oneinstack/src/tengine-2.1.2′
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    make: *** [build] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [1;31mTengine install failed, Please Contact the author! [0m
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    /bin/cp: cannot stat `../init.d/Nginx-init-CentOS’: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    error reading information on service nginx: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    error reading information on service nginx: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /etc/init.d/nginx: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    mv: cannot stat `/usr/local/tengine/conf/nginx.conf’: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    /bin/cp: cannot stat `../config/nginx.conf’: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    grep: /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    include/tengine.sh: line 58: /usr/local/tengine/conf/proxy.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    sed: can’t read /usr/local/tengine/conf/nginx.conf: No such file or directory
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ~/oneinstack/src ~/oneinstack
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    nginx: unrecognized service

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • 云飞客
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      云飞客

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      博主,请问一下为什么一键安装之后,设置了主域名,子域名都不能访问,但是IP能访问,网络,端口都设置了域名不能访问,lnmp集成环境

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 一个人
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        一个人

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        不支持ftp的远程备份吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • 漏蛧尐魚℡
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          漏蛧尐魚℡

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          大佬,我想迁移主机,在新的主机上要怎么设置和之前主机一样的环境?或者说在旧主机上要备份什么环境文件? :mrgreen:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ 漏蛧尐魚℡ 数据库dump sql、网站根目录,还有对应nginx/apache配置文件。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 一生所爱
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              一生所爱

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              请问大大: 在配置 ssl 环境证书时,网站可以正常访问 https,但提示这个 nginx: [warn] “ssl_stapling” ignored, issuer certificate not found for certificate “/usr/local/nginx/conf 要在吗解决呢?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 枫叶吧
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                枫叶吧

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                博主,安装ftp后,网页版的可以打开正常,当但用flashFtp时就连接不上,什么原因呢

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • xiaoz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  xiaoz

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  建议不要卸载自带的firewalld,比如已经安装firewalld的情况下,运行oneinstack会询问是否安装iptables?选择否之后把firewalld给卸载了。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • CC
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CC

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    问下,怎么来建 PostgreSQL 数据库, 没有像phpMyAdmin 界面化的办法吗?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    只能用命令?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • puffbaby
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        puffbaby

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ CC 这个不是面板,当然没有啦,不过常用的就那几个命令而已啦

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 空樱酱
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        空樱酱

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        能否增加Nginx的init.d脚本的status命令?老版本有,现在的版本没有了。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              @ geniux 建议下载lnmp-full.tar.gz 服务器在海外可以用lnmp.tar.gz

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 吴广生
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              吴广生

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              我依照这个笔记方法重新安装java web环境,发现没有tomcat安装选项,安装完成后没有tomcat,QQ上找大虾们问了个遍,被忽悠个晕头转向,实在不甘心,在Oneinstack.com找到oneinstack安装链接,尝试了一把,问题才得以解决,这里把方法分享给后来受害者作为指引。
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              1. wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              2. tar -xzf oneinstack-full.tar.gz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              3. cd oneinstack
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              4. ./install.sh
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              问题解决!建议博主更新一下这个无聊的运维笔记,或者把lnmp-full.tar.gz维护好。谢谢!

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 写在最初的流年、
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                写在最初的流年、

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                管理员,我选择的时apache2.4,php7.0,mysql5.6,然后安装完之后php启动不了,显示php-fpm: unrecognized service
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                而apache和mysql都是可以启动的,应该怎么解决问题呢

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • nisz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  nisz

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  install HHVM? 【y/n】n之后就只有个光标在最左边闪,停止了?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • kumi.z
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    kumi.z

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    管理员好:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    您的一键做的非常棒,用了好久,也在阿里云 aws 都测试过,相当方便。但是最近换了个服务器出现点情况,这种情况,前所未有。解压安装文件 执行 ./install.sh 后选择完之后,就没有反应了。哪怕尝试什么都选no 也不行。希望可以帮忙研究下。谢谢

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ kumi.z 最新版本已经修复这个问题。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 123
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        123

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        为什么php7.1 关闭不了opcache

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @ 123 /usr/local/php/etc/php.d/ext-opcache.ini

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 外星人UFO真相
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            外星人UFO真相

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            wget http://mirrors.linuxeye.com/lnmp-full.tar.gz # 包含源码,国内外均可下载
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            wget http://mirrors.linuxeye.com/lnmp.tar.gz # 不包含源码,建议仅国外主机下载

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            不太明白,下载包含源码,和不下载包含源码,区别在哪里?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • 写在最初的流年、
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              写在最初的流年、

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              你好,我想修改网站根目录,之前默认的是在/data/wwwroot/default中,我想跟改为其他目录.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              在我修改/usr/local/apache/conf/httpd.conf 中的 DocumentRoot “/data/wwwroot/a” 和 之后,网站根目录还是之前的default目录,而没有变成default/a目录,也没有报错.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              apache重启也没作用

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • 魂

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                博主你好。想问一下一键包的话nginx模块该如何安装

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • zxcvbg
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  zxcvbg

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  nginx 最高版本是多少 高于1.9没啊

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • hgj123
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    hgj123

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    怎么连接不上ftp啊 21端口已开。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • tuine
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      tuine

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      不知道为什么安装的mysql5.7远程连接非常慢,默认也有skip-name-resolve,其他设置也调试了下未发现问题,自己编译安装远程就很快~~

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • 将头发梳成大人模样
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        将头发梳成大人模样

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        nginx如何添加模块,安装的nginx中没有configure脚本?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ysong
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ysong

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          这个用着不错,不过备份上传功能里是否可以加一个DROPBOX选项?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          https://github.com/andreafabrizi/Dropbox-Uploader

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • 枫叶吧
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            枫叶吧

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            博主你好~~今天安装怎么出现了这种情况呢,博主不考考虑一下集合git进去。。。。。毕竟好多人使用
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Download htop for CentOS…
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            –2018-06-03 11:20:37– http://hisham.hm/htop/releases/2.1.1/htop-2.1.1.tar.gz
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Resolving hisham.hm (hisham.hm)… 69.163.217.231
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Connecting to hisham.hm (hisham.hm)|69.163.217.231|:80… connected.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            HTTP request sent, awaiting response… 404 Not Found
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            2018-06-03 11:20:38 ERROR 404: Not Found.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Auto download failed! You can manually download http://hisham.hm/htop/releases/2.1.1/htop-2.1.1.tar.gz into the oneinstack/src directory.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ~/lnmp ~/lnmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Killed

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Lionel
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Lionel

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              部署php以后 请问如何拓展ldap插件 能给个具体步骤和思路吗 网上的帖子都看过了 但是都没成功 5.6和7.0版本的php都可以

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • geniux
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                geniux

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Fedora 28 server版本下安装通不过。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • tzdyh
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  tzdyh

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  这个一键脚本,非常强大,已经用了很多次,而且遇到的各种问题,也可以在评论区中找到答案,这个脚本为我省去大把时间,真心感谢作者的付出,世界因你们而美丽 :wink: 我是认真的

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • lock
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    lock

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    你好,我想问下ubuntu下redis的启动管理脚本在哪里?我看/etc/init.d没有。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        @ lock 有systemd已经切换至systemd

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • puffbaby
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        puffbaby

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        大神,centos6.5 安装pureftp 安装报错:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make[2]: *** [libpureftpd_a-tls.o] Error 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make[2]: *** Waiting for unfinished jobs….
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        mv -f .deps/libpureftpd_a-utils.Tpo .deps/libpureftpd_a-utils.Po
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make[2]: Leaving directory `/root/lnmp/src/pure-ftpd-1.0.47/src’
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make[1]: *** [all-recursive] Error 1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make[1]: Leaving directory `/root/lnmp/src/pure-ftpd-1.0.47′
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        make: *** [all] Error 2
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ~/lnmp/src ~/lnmp ~/lnmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Pure-Ftpd install failed, Please contact the author!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        已杀死
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ~/lnmp ~/lnmp
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        应该怎么解决呢?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            @ puffbaby ~/lnmp/install.log 日志贴到百度云回复下链接

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • carry
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            carry

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            PHP安装失败,请联系作者?? 这个什么意思,有人碰到过这个问题吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                @ carry ~/lnmp/install.log 日志贴到百度云回复下链接

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • out8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                out8

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                不知道为什么这次的版本 安装了 苹果CMS加不了数据 不知道为什么写不进数据?以前的老版本还有吗?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • yeho
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    yeho

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    @ out8 是不是php或者mysql版本太高了苹果CM不支持?

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                匿名

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                发表评论

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                匿名网友
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                确定

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                拖动滑块以完成验证