Ubuntu安装Nginx步骤方法

 时间:2026-02-14 05:58:14

1、将nignx.tar 复制到服务器目录,然后将nginx.tar 解压如图:

tar -zxvf nginx.tar

Ubuntu安装Nginx步骤方法

2、解压完成后将nginx文件夹复制到/usr/local/目录。

Ubuntu安装Nginx步骤方法

3、将nginx/sbin/libpcre.so.1  文件复制到/lib/i386-linux-gnu/目录

Ubuntu安装Nginx步骤方法

4、检验是否成功

root@testm:# cd  /usr/local/nginx/sbin

root@testm:# ./nginx -t

Ubuntu安装Nginx步骤方法

5、启动nginx

[root@localhost sbin]# ./nginx -c /usr/local/nginx/conf/nginx.conf

查看端口

[root@localhost sbin]# netstat –ntlp

修改端口

[root@localhost  /]# cd /usr/local/nginx/conf

[root@localhost conf]# vi nginx.conf

Ubuntu安装Nginx步骤方法

6、修改配置文件,然后重启nginx。

Ubuntu安装Nginx步骤方法

  • 图解ubuntu右键菜单添加新建word文档选项
  • ubuntu下fcitx的状态图标显示不正常怎么办
  • 如何在Linux ubuntu 下安装软件 iptables等
  • window server 2012下如何安装OpenSSH
  • 如何下载xenserver镜像
  • 热门搜索
    运动会跳高加油稿 粉墨登场是什么意思 备孕要吃什么 11月24日是什么日子 md什么意思 教育技术学是什么专业 3g是什么意思 嘴角烂是什么原因 false什么意思 电瓶车什么牌子好