Linux 非root用户安装nginx
wget http://nginx.org/download/nginx-1.9.3.tar.gz
tar -zxvf nginx-1.9.3.tar.gz
cd nginx-1.9.3
./configure --prefix=/你的目录/nginx \
--sbin-path=/你的目录//nginx/nginx \
--conf-path=/你的目录//nginx/nginx.conf \
--pid-path=/你的目录//nginx/nginx.pid \
--with-http_ssl_module
使用linux root用户授权
进入 你的目录/
chown root nginx
chmod u+s nginx
chown root nginx.pid
chmod u+s nginx.pid
本文介绍如何在Linux系统中非root用户权限下安装Nginx,包括下载、解压、配置安装路径及模块等步骤,并提供root用户授权方法。
918

被折叠的 条评论
为什么被折叠?



