代码拉取完成,页面将自动刷新
打开 PowerShell
$ cd $HOME
$ git clone --depth=1 https://github.com/khs1994-docker/lnmp.git
# $ git clone --depth=1 git@github.com:khs1994-docker/lnmp.git
# 中国镜像
$ git clone --depth=1 https://gitee.com/khs1994-docker/lnmp.git
# $ git clone --depth=1 git@gitee.com:khs1994-docker/lnmp
$ [environment]::SetEnvironmentvariable("LNMP_PATH", "${HOME}\lnmp", "User")
$ cd $HOME
$ cd lnmp
$ ./lnmp-docker.ps1 up
如果
PowerShell
禁止执行脚本,请以管理员身份运行PowerShell
并执行set-ExecutionPolicy Bypass
,之后输入Y
确认。说明
# 禁止执行脚本的提示
PS C:\Users\90621\lnmp> .\lnmp-docker
.\lnmp-docker : File C:\Users\90621\lnmp\lnmp-docker.ps1 cannot be loaded because running scripts is disabled on this s
ystem. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\lnmp-docker
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
# 解决方法
PS C:\Windows\system32> set-ExecutionPolicy Bypass
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y(输入Y)
浏览器打开 127.0.0.1
,看到页面。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。