Home >Backend Development >PHP Tutorial >php 通过web重新加载nginx配置

php 通过web重新加载nginx配置

WBOY
WBOYOriginal
2016-06-02 11:31:15869browse

nginxphp

在linux下我同过php命令直接运行test.php文件是可以成功的,但是我同过nginx去访问(也就是浏览器)test.php文件。死活执行不成功。。。test.php文件就一行代码。。。执行重新加载nginx配置的命令system("sudo service nginx restart", $out);。。
哪位大神可以告知下。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn