欢迎来到站长教程网!

PHP教程

当前位置: 主页 > 网络编程 > PHP教程

添加虚拟主机环境lnmp.git[苹果cmsV10]

更新时间:2026-07-23 03:56:12|栏目:PHP教程|点击:127 次

~/lnmp/vhost.sh
--------------------------------------------------------------------
What Are You Doing?
1. Use HTTP Only
2. Use your own SSL Certificate and Key
3. Use Let's Encrypt to Create SSL Certificate and Key
q. Exit
Please input the correct option: 3

Please input domain(example: www.example.com): www.123.com
(Default directory: /data/wwwroot/www.123.com): 默认
Do you want to add more domain name? [y/n]: y
Type domainname or IP(example: example.com other.example.com): 123.com
Do you want to redirect from 123.com to www.123.com? [y/n]: y
Do you want to redirect all HTTP requests to HTTPS? [y/n]: y

Please select domain cert key length.
Enter one of 2048, 3072, 4096, 8192 will issue a RSA cert.
Enter one of ec-256, ec-384, ec-521 will issue a ECC cert.

Please enter your cert key length (default ec-256): 默认

Do you want to add hotlink protection? [y/n]: n
Allow Rewrite rule? [y/n]: y
Allow Nginx/Tengine/OpenResty access_log? [y/n]: y

 


# 进入网站根目录
cd /data/wwwroot/www.123.com/

# 将所目录的所有权交给 www 用户

sudo chown -R www:www .

# 所有目录设为 755
sudo find . -type d -exec chmod 755 {} \;

# 所有文件设为 644
sudo find . -type f -exec chmod 644 {} \;

# 再次确保 runtime 和 upload 目录可写
sudo chmod -R 755 runtime/ upload/ 2>/dev/null
sudo chmod -R 755 application/runtime/ 2>/dev/null

上一篇:PHP中实现一个简易三角形的方法

栏    目:PHP教程

下一篇:PHP 7安装使用体验之性能大提升,兼容性强,扩展支

本文标题:PHP中实现九九乘法口诀表

本文地址:http://tp2.com/index.php?m=home&c=View&a=index&aid=172

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:88888888 | 邮箱:888petersds@gmail.com

Copyright © 2002-202X 某某站长教程网 版权所有 非商用版本粤ICP备xxxxxxxx号