我正在使用共享托管环境,以及其他支持Python的东西.我已经按照示例并部署了我的cgi文件,然后通过chmod,向全世界提供了Read和Execute Permissions,然后向所有者提供了Read,Write和Execute.
代码就是这样:
#!/usr/bin/python
# Required header that tells the browser how to render the text.
print "Content-Type: text/plain\n\n"
# Print a simple message to the display window.
print "Hello, World!\n"
Run Code Online (Sandbox Code Playgroud)
当我运行这个时,我收到以下错误:
发生了文件权限错误.请检查脚本及其所在目录的权限,然后重试.
任何帮助表示赞赏!
安德鲁