安装nginx

 

root@hecs-x-medium-2-linux-20200619090653:~# apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx-common nginx-core
Suggested packages:
fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx nginx-common nginx-core
0 upgraded, 7 newly installed, 0 to remove and 51 not upgraded.
Need to get 602 kB of archives.
After this operation, 2,134 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

root@hecs-x-medium-2-linux-20200619090653:~# systemctl start nginx
root@hecs-x-medium-2-linux-20200619090653:~# systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-02-08 12:05:41 CST; 26s ago
Docs: man:nginx(8)
Main PID: 2225 (nginx)
Tasks: 2 (limit: 2281)
Memory: 6.5M
CGroup: /system.slice/nginx.service
├─2225 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─2226 nginx: worker process

posted @ 2021-02-08 12:09  无边无忌  阅读(157)  评论(0)    收藏  举报