[不花钱站长]:从免费域名开始[0元] Oracle永久免费VPS[0元] VPS环境搭建免费脚本[0元] 秒变大盘挂载免费网盘[0元] 小白免费采集器1天500W[0元] CF免费DNS+CDN服务[0元]
[零基础网赚]:撸本站免费源码[0元] 网站强引免费蜘蛛法[0元] 图片视频文件免费存储[0元] 外链轻松发布免费友链[0元] 入坑免费教程学习源代码[0元] 网上百种+赚钱联盟推荐[?元]

↑↑VPS推荐网 WWW.VPS.COM.IN 稳定 便宜 免备案↑↑


您现在的位置是:首页 > 全球[VPS测评] >  教程分享,国外永久免费VPS

使用LNMP域名绑定详解

全球[VPS测评]来源:VPS推荐网点击:920
【性价之王】【线路之王】【价格之王】【配置之王】
【免费之王】【香港首推】【梯子之王】【独服之王】
使用LNMP域名绑定详解

Linux系统下,一键搭建nginx+php+mysql+phpmyadmin常用网站环境一般使用的是军哥的LNMP一键安装(Linux lnmp一键安装包相关使用教程),在安装好之后就是域名的绑定啦!其实所谓的域名绑定,就是通过命令的形式,简易创建一个conf文件到/usr/local/nginx/conf/vhost下面,这个过程完全可以手工创建conf,或者,平时修改目录、域名等,直接修改conf文件,效果完全一样:

/root/vhost.sh #lnmp域名绑定命令=========================================================================Add Virtual Host for LNMP V0.9  ,  Written by Licess=========================================================================LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on LinuxThis script is a tool to add virtual host for nginxFor more information please visit http://www.lnmp.org/=========================================================================Please input domain:(Default domain: www.lnmp.org):xqblog.com #输入你要绑定的域名,xqblog.com和www.xqblog.com要分别绑定===========================domain=xqblog.com===========================Do you want to add more domain name? (y/n)y #是否添加子域名,可以输入y或n,这里输入yType domainname,example(bbs.xqblog.com forums.xqblog.com luntan.xqblog.com):www.xqblog.com #输入你要绑定的其它域名,支持泛解析,例如:*.7vps.net===========================domain list=www.xqblog.com===========================Please input the directory for the domain:xqblog.com :(Default directory: /home/wwwroot/xqblog.com):/home/xqblog.com #网站存放目录,可默认或自行输入===========================Virtual Host Directory=/home/xqblog.com======================================================Allow Rewrite rule? (y/n)===========================y #是否添加伪静态规则,这里输入是Please input the rewrite of programme :wordpress,discuz,typecho,sablog,dabr rewrite was exist.(Default rewrite: other):wordpress #输入wordpress就可以===========================You choose rewrite=wordpress======================================================Allow access_log? (y/n)===========================n #是否创建日志文件,如果不需要可不用Press any key to start create virtul host...#按任意建继续,以下为一些相关信息,包括创建目录,测试nginx等,如果有错误提示,请一定要认真分析Create Virtul Host directory......set permissions of Virtual Host directory......You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.confTest Nginx configure file......nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is oknginx: configuration file /usr/local/nginx/conf/nginx.conf test is successfulRestart Nginx......=========================================================================Add Virtual Host for LNMP V0.9  ,  Written by Licess=========================================================================For more information please visit http://www.lnmp.org/Your domain:xqblog.comDirectory of xqblog.com:/home/xqblog.com=========================================================================
[教程分享]历史优惠活动内容
  • 分享 iOS11~iOS12.1.2完整越狱教程分享 带完整功能Cydia和越狱插件生态
  • #分享#iOS11~iOS12.1.2完整越狱教程分享 带完整功能Cydia和越狱插件生态
  • #分享#iOS11~iOS12.1.2完整越狱教程分享 带完整功能Cydia和越狱插件生态
  • #分享#iOS11~iOS12.1.2完整越狱教程分享 带完整功能Cydia和越狱插件生态
  • #分享#iOS11~iOS12.1.2完整越狱教程分享 带完整功能Cydia和越狱插件生态

  • 猜你可能想看的VPS


    转载请注明原文地址:http://140.238.13.167:12355/read-77743.html

    下一篇       上一篇