有没有一种方法可以以非root用户身份在Linux上启动/重新启动/停止a​​pache服务器? [英] Is there a way to start/restart/stop apache server on linux as non-root user?

查看:134
本文介绍了有没有一种方法可以以非root用户身份在Linux上启动/重新启动/停止a​​pache服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道linux(我使用的是openSUSE)上的非root用户是否可以在不使用sudo命令的情况下运行apache.请考虑到该用户与apache(wwwrun)在同一组中.
预先感谢.

解决方案

通过在httpd.conf中配置日志目录和端口,可以很容易地克服benlumley上面指出的问题,即日志文件和保留端口./p>

I'd like to know if it is possible for non-root user on linux (i'm using openSUSE) to run apache without using sudo command. Take into account that the user is in the same group as apache (wwwrun).
Thanks in advance.

解决方案

The problems pointed out above by benlumley, i.e. log files and reserved ports, can easily be overcome by configuring the log directory and port in your httpd.conf.

这篇关于有没有一种方法可以以非root用户身份在Linux上启动/重新启动/停止a​​pache服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆