麒麟操作系统安装Nginx(鲲鹏ARM环境)
【代码】麒麟操作系统安装Nginx(鲲鹏ARM环境)
·
下载Nginx
#下载,解压,创建用户
wget http://nginx.org/download/nginx-1.26.3.tar.gz
tar zxvf nginx-1.26.3.tar.gz
useradd -s /sbin/nologin -M nginx
#安装目录在/usr/local/nginx
cd nginx-1.26.3
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx
#编译安装
make && make install
#创建软连接
[root@localhost nginx-1.26.3]# ln -s /usr/local/nginx/sbin/* /usr/local/bin/
#启动Ng
[root@localhost nginx-1.26.3]# cd /usr/local/nginx/sbin/
[root@localhost sbin]# ./nginx
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
鲲鹏昇腾开发者社区是面向全社会开放的“联接全球计算开发者,聚合华为+生态”的社区,内容涵盖鲲鹏、昇腾资源,帮助开发者快速获取所需的知识、经验、软件、工具、算力,支撑开发者易学、好用、成功,成为核心开发者。
更多推荐

所有评论(0)