也许我错过了一些非常基本的东西,但是我的Web服务器如何能够执行并提供拥有许可000的php文件中的内容?
这是有问题的文件:http://178.62.125.162/test.php
位置是:
/usr/share/nginx/html/wordpress/test.php
Run Code Online (Sandbox Code Playgroud)
这是ls:
---------- 1 deploy deploy 21 May 22 09:40 test.php
Run Code Online (Sandbox Code Playgroud)
nginx.conf有一行:
user www-data;
Run Code Online (Sandbox Code Playgroud)
所以它不是以root用户身份运行的.
ps aux | grep [n]ginx
root 30223 0.0 0.1 85876 1364 ? Ss May21 0:00 nginx: master process /usr/sbin/nginx
www-data 30224 0.0 0.1 86172 1796 ? S May21 0:03 nginx: worker process
www-data 30225 0.0 0.1 86172 1796 ? S May21 0:03 nginx: worker process
www-data 30226 0.0 0.2 86516 2732 ? S May21 0:00 nginx: worker process
www-data …Run Code Online (Sandbox Code Playgroud) 我有一个json对象,例如:
var json = {
"title": "Math Symbols: ¬",
"sections": [
"The ¬ symbol",
"¬ and y"
]
};
Run Code Online (Sandbox Code Playgroud)
我需要用"x:sample"的数学符号替换"¬"字符的所有实例.
旁注:我不能使用该实际符号(html实体𝑥),因为我使用的Arial字体不支持它.因此,我计划<span class="math">x</span>用Times New Roman和italic 替换"¬" 并用数学课程造型.
我不能更改Arial字体,我不需要任何其他数学符号 - 不需要MathML支持等.
这样的事情是理想的:
json = json.replace("¬", "<span class='math'>x</span>");
Run Code Online (Sandbox Code Playgroud)