如何将red5服务器视频文件所有者更改为apache用户
我安装了red5服务器。它运行良好。我想更改 red5 服务器创建的视频文件的默认所有者。目前它是root。我希望将其更改为apache,以便我可以通过php unlink命令删除该文件。
任何帮助将不胜感激。
I have a red5 server installed. It is working fine. I want to changes the default owner of the video file created by red5 server. Currently it is root.I want this to be changed to apache so that I can delete this file through php unlink command.
Any help will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
bigbluebutton 项目做了类似的事情,他们以自己的用户身份运行 red5,您可以在安装 red5 后修改此信息以使用 apache 用户。
您需要调整路径、组和用户以适合您的安装。我假设您的用户和组名为“apache”。最后一部分是确保您以“apache”用户身份启动 red5;这很可能需要更改您的启动脚本。
The bigbluebutton project does something similar wherein they run red5 as its own user, you could modify this information to use the apache user instead after installing red5.
You need to adjust the paths, groups, and users to fit your installation. I am assuming that your user and group are named "apache". The final part of this is to make sure you start red5 as the "apache" user; this will most likely require a change to your startup scripts.
如果您可以访问您的服务器并且它是Linux,则更改此命令的命令是
如果您想在文件夹内的许多文件中应用,请在chown后尝试-R。您可能还需要在 chown 前面添加 sudo。
顺便说一句,apache 用户和组是 www-data。
If you have access to your server and it is linux, the command to change this is
If you want to apply in many files inside a folder try -R after chown. You may need also a sudo in front of the chown.
Btw apache user and group is www-data.