Ubuntu安装Nginx步骤方法
1、将nignx.tar 复制到服务器目录,然后将nginx.tar 解压如图:tar -zxvf nginx.tar
2、解压完成后将nginx文件夹复制到/usr/local/目录。
3、将nginx/sbin/libpcre.so.1 文件复制到/lib/i386-linux-gnu/目录
4、检验是否成功root@testm:# cd /usr/local/艘绒庳焰nginx/sbinroot@testm:# ./nginx -t
5、启动nginx[root@localhost sbin]# ./nginx -c /usr/lo罕铞泱殳cal/荏鱿胫协nginx/conf/nginx.conf查看端口[root@localhost sbin]# netstat –ntlp修改端口[root@localhost /]# cd /usr/local/nginx/conf[root@localhost conf]# vi nginx.conf
6、修改配置文件,然后重启nginx。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:23
阅读量:30
阅读量:67
阅读量:49
阅读量:94