【发布时间】:2011-08-14 05:23:26
【问题描述】:
我知道不推荐使用 apache 端口 80 作为非 root 用户,因为我知道不建议使用 1024。
【问题讨论】:
-
不能,Linux 系统不允许将套接字绑定到端口 1024 以下。使用高于端口 1024 或以 root 身份启动 Apache 守护程序的实际问题是什么?
-
当我无法以 root 身份运行时,我使用
5000或8080。你为什么不以 root 身份运行...? -
如果我启动 apache 作为守护进程,它会解决我的问题吗?
-
@user665319:你可能应该使用 init.d 脚本或
apache2ctl启动 Apache,如果你的系统有它的话......用户 Apache 运行由User和Group控制配置文件中的指令......说了这么多,你的问题是什么?您对您所在的服务器没有 root 访问权限吗?