首页 > 编程知识 正文

docker 安装 ubuntu,ubuntu安装方法

时间:2023-05-05 11:38:55 阅读:144034 作者:4360

1、nginx账户root @ Ubuntu :/usr # useradd-mnginxroot @ Ubuntu :/usr # 创建的passwdnginxenternewunixpassword : retypenewunixpassword : passwordupdatedsuccessfullyroot @ Ubuntu 3360/usr # nginx 为etc/passwd#创建/bin/bash nginx : x 336010013360100133603360/home/nginx :/bin/bash 2和nginx工作目录nginx $ sudomkdirnginxnginx @ Ubuntu :/$ sudochownnginx 3360 nginx/nginx @ Ubuntu :/$ cdnginxnxnginx $ wget http://nginx nginx-1.21.0.tar.gz---2021-06-0701336018336015-- http://nginx.orr nginx-1.21.0.tar.gzresolvingnx 2a 053360 d 014360 . connectingtonginx.org|3.125.197.172|:80 . connected.http request sent, 等待响应. 200 ok length :1063682 (1.0m ) [application/octet-stream] svin GTO :‘nginx-1.21.0.tar.gz’nginx-1.21.0.tar.gz 100 % [==============1.01 m100 s (nginx-1.21.0.tar.gz’saved [ 1063682/1063682 ] nginx $ tar-zxfnginx-1.21.0.tar.gz nginx @ Ubuntu 3333 解析依赖软件包openssl安装sudo apt-getinstallopenssllibssl-dev #解析依赖软件包pcre安装sudo apt-getinstalllibpcre3lib pcre3- dev # 依赖软件包zlib安装sudo apt-get install zlib1g-dev 4,nginx nginx @ Ubuntu :/usr/local/nginx/nginx-1.21.0 $ 编译configunt的nginx-1.21.0 $ make nginx @ Ubuntu :/usr/local/nginx/nginx-1.21.0 $ make install 5,nginx # 否则,permissiondeniednginx @ Ubuntu :/usr/local/nginx/$ sudo./sbin/nginx-c/usr/local/nginx/conf/s 01:450336000 nginx : master process./nginx-c/usr/local/nginx/conf/nginx.conf nobody 19783.0.0300402960 s 01:450336000 nginx : workerprocessnginx 198010.0.0467803520 pts/0r 013360470336000 PS-aux nginx 19802.0.0215441012 pts/0r 01:4703360000 PS-aux nginx 19802.0.0 0s 01:470:00 gregre doctypehtmlhtmlheadtitlewelcometonginx! /titlestyle body { width: 35em; margin : 0自动; font-family: Tahoma,Verdana,Arial,sans-serif; }/style/headbodyh1welcometonginx! /h1pIf you see this page, thenginxwebserverissuccessfullyinstalledandworking.furtherconfigurationisrequired./pforonlinedocumentationandsupportpleaserefertoahref=' http://nginx.org/' nginx.org/a.br/commercialsupportisavailababbbabr ppemthankyouforusingnginx./em/p/body/html 8, 使用nginx命令#提示符命令不存在root @ Ubuntu :/usr/local/ntml but can be installed with : #环境变量root @ Ubuntu 3360/usr 通过最后添加的nginx _ home=/usr/Lome sbinexportpath=$ nginx _ home : $ path # source/etc/profile,配置文件很快就会变成根@ ubububurot nginx # nginx-t nginx 3360 theconfiguration file/usr/local/nginx/conf/nginx.confsyntaxisoknginx 3360 configure

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。