3.2 安装Nginx

Nginx——Nginx启动报错Job for nginx.service failed because the control process exited with error code 一、报错如下 Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. 二、解决原因 1、先检查nginx配置文件正否正确 输入nginx -t 命令,如果反回 successful表示配置文件无错误,否则说明配置文件有错误。 [root@localho 阅读详情

1. 安装Nginx

用tar命令解压文件的时候出错了,信息如下:
tar (child): lbzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

解决方法很简单,只要安装bzip2就行了,yum安装的命令如下:

[root@localhost]# yum -y install bzip2

在安装nginx时出现以下错误:

[root@centos6-1 ~]# yum install nginx -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: ftp.sjtu.edu.cn
 * updates: mirrors.shu.edu.cn
No package nginx available.
Error: Nothing to do
[root@host ~]#  vim /etc/yum.repos.d/nginx.repo
 # 在文件中写入以下内容:
 [nginx]
 name=nginx repo
 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
 gpgcheck=0
 enabled=1

退出保存后,直接安装:

[root@host ~]#  yum install nginx -y

2. 查找nginx配置文件

[root@host ~]#  find / -name nginx.conf

利用vim /etc/nginx/conf.d/nginx.conf 修改配置文件内容为

user www www;

worker_processes auto;
error_log  /home/wwwlogs/nginx_error.log  crit;
pid        /usr/local/nginx/logs/nginx.pid;

worker_rlimit_nofile 51200;

events
   {
       use epoll;
       worker_connections 51200;
       multi_accept on;
   }
   
http
   {
       include       mime.types;
       default_type  application/octet-stream;

       server_names_hash_bucket_size 128;
       client_header_buffer_size 32k;
       large_client_header_buffers 4 32k;
       client_max_body_size 50m;

       sendfile   on;
       tcp_nopush on;

       keepalive_timeout 60;
tcp_nodelay on;

       fastcgi_connect_timeout 300;
       fastcgi_send_timeout 300;
       fastcgi_read_timeout 300;
       fastcgi_buffer_size 64k;
       fastcgi_buffers 4 64k;
       fastcgi_busy_buffers_size 128k;
       fastcgi_temp_file_write_size 256k;

       gzip on;
       gzip_min_length  1k;
       gzip_buffers     4 16k;
       gzip_http_version 1.1;
       gzip_comp_level 2;
       gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
       gzip_vary on;
       gzip_proxied   expired no-cache no-store private auth;
       gzip_disable   "MSIE [1-6]\.";

       server_tokens off;
       access_log off;
   
server {
   listen       80;
   server_name  ptmicky.tk;
   root         /usr/share/nginx/html;
   index index.html index.htm index.php;

   # Load configuration files for the default server block.
   include /etc/nginx/default.d/*.conf;
   location / {
       }

   error_page 404 /404.html;
       location = /40x.html {
       }

   error_page 500 502 503 504 /50x.html;
       location = /50x.html {
       }
   }
}

按ESC,再输入 :wq保存退出
使用查找命令查找niginx,然后在启动Nginx服务前检查配置文件语法

[root@host ~]# find / -name nginx
[root@host ~]# /application/nginx/sbin/nginx -t

启动Nginx

/etc/init.d/nginx start # 启用1
/etc/init.d/nginx restart# 重启
nginx # 启用2

查看已开启的端口信息

[root@host ~]# netstat -lnp | grep 80

可以看到Nginx已经在侦听80端口。
查看Nginx进程

[root@host ~]# ps aux | grep nginx

在这里查看到nginx的应用程序是在哪里,配置文件具体是用哪一个
在主机浏览器上输入域名或者IP可以看到测试结果。
在这里插入图片描述
使用wget命令和curl命令测试

[root@host ~]# wget 127.0.0.1
[root@host ~]# curl 127.0.0.1

测试html网页

[root@host ~]# curl localhost
# 这里可以检测网页是否仍为“lnmp的一键安装首页”

3. 故障排查<Nginx启动失败,80端口已被占用>

检查Nginx配置

[root@host ~]#  ./sbin/nginx -t -c ./conf/nginx.conf
nginx: the configuration file /usr/local/nginx/./conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/./conf/nginx.conf test is successful

不依靠残留进程,重新启动Nginx

[root@host ~]#  /usr/local/nginx/sbin/nginx -c 
[root@host ~]#  /usr/local/nginx/conf/nginx.conf
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

强制性杀死进程

[root@host ~]#  pkill -9 nginx
[root@host ~]#  /usr/local/nginx/sbin/nginx -c 
[root@host ~]# /usr/local/nginx/conf/nginx.conf
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

再次启用nginx

[root@host ~]#  /etc/init.d/nginx start
Starting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. [FAILED]

查看Nginx服务状态

[root@host ~]#  systemctl status nginx.service
â— nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
Loaded: loaded (/etc/rc.d/init.d/nginx)
Active: failed (Result: exit-code) since Tue 2018-01-02 23:19:52 CST; 38s ago
Docs: man:systemd-sysv-generator(8)
Process: 15553 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
Jan 02 23:19:50 i-14fe7093 nginx[15553]: nginx: [emerg] bind() to 0.0.0.0:80...)
Jan 02 23:19:52 i-14fe7093 nginx[15553]: nginx: [emerg] still could not bind()
Jan 02 23:19:52 i-14fe7093 nginx[15553]: [FAILED]
Jan 02 23:19:52 i-14fe7093 systemd[1]: nginx.service: control process exite...=1
Jan 02 23:19:52 i-14fe7093 systemd[1]: Failed to start SYSV: Nginx is an HT...r.
Jan 02 23:19:52 i-14fe7093 systemd[1]: Unit nginx.service entered failed state.
Jan 02 23:19:52 i-14fe7093 systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

查看系统日志

[root@host ~]#  journalctl -xe
Jan 02 23:19:49 i-14fe7093 systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit nginx.service has begun starting up.
Jan 02 23:19:50 i-14fe7093 nginx[15553]: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jan 02 23:19:52 i-14fe7093 nginx[15553]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jan 02 23:19:52 i-14fe7093 nginx[15553]: nginx: [emerg] still could not bind()
Jan 02 23:19:52 i-14fe7093 nginx[15553]: [FAILED]
Jan 02 23:19:52 i-14fe7093 systemd[1]: nginx.service: control process exited, code=exited status=1
Jan 02 23:19:52 i-14fe7093 systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
--Support:http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jan 02 23:19:52 i-14fe7093 systemd[1]: Unit nginx.service entered failed state.
Jan 02 23:19:52 i-14fe7093 systemd[1]: nginx.service failed.
Jan 02 23:19:52 i-14fe7093 polkitd[1300]: Unregistered Authentication Agent for unix-process:15548:1690636 (system bus name :1.71, object path /org/freedesktop/PolicyKi
Jan 02 23:19:52 i-14fe7093 root[15630]: [euid=root]:root pts/0 2018-01-02 23:07 (10.247.123.130):[/usr/local/nginx]2018-01-02 23:19:49 root /etc/init.d/nginx start
Jan 02 23:20:01 i-14fe7093 CROND[15632]: (root) CMD (/sbin/ntpdate pool.ntp.org > /dev/null 2>&1)
Jan 02 23:20:31 i-14fe7093 root[15675]: [euid=root]:root pts/0 2018-01-02 23:07 (10.247.123.130):[/usr/local/nginx]2018-01-02 23:20:31 root systemctl status nginx.servi
Jan 02 23:20:58 i-14fe7093 root[15685]: [euid=root]:root pts/0 2018-01-02 23:07 (10.247.123.130):[/usr/local/nginx]2018-01-02 23:20:31 root systemctl status nginx.servi
-- Logs begin at Tue 2018-01-02 18:38:04 CST, end at Tue 2018-01-02 23:20:58 CST. --
Jan 02 23:19:49 i-14fe7093 systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has begun starting up.
Jan 02 23:19:50 i-14fe7093 nginx[15553]: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jan 02 23:19:52 i-14fe7093 nginx[15553]: nginx: [emerg] still could not bind()
Jan 02 23:19:52 i-14fe7093 nginx[15553]: [FAILED]
Jan 02 23:19:52 i-14fe7093 systemd[1]: nginx.service: control process exited, code=exited status=1
Jan 02 23:19:52 i-14fe7093 systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jan 02 23:20:01 i-14fe7093 CROND[15632]: (root) CMD (/sbin/ntpdate pool.ntp.org > /dev/null 2>&1)
Jan 02 23:20:31 i-14fe7093 root[15675]: [euid=root]:root pts/0 2018-01-02 23:07 (10.247.123.130):[/usr/local/nginx]2018-01-02 23:20:31 root systemctl status nginx.servi
Jan 02 23:20:58 i-14fe7093 root[15685]: [euid=root]:root pts/0 2018-01-02 23:07 (10.247.123.130):[/usr/local/nginx]2018-01-02 23:20:31 root systemctl status nginx.servi

-lt 列出监听的TCP端口
-u 或 --udp 显示UDP传输协议的连线状况
-n 输出中不解析主机、端口、名称
-p 显示进程ID和名称

[root@host ~]#  netstat -ltunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1065/memcached
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1005/redis-server 1
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 816/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 958/master
tcp 0 0 10.247.110.35:95 0.0.0.0:* LISTEN 891/python
tcp6 0 0 :::8080 :::* LISTEN 1160/java
tcp6 0 0 :::80 :::* LISTEN 812/httpd
tcp6 0 0 :::22 :::* LISTEN 816/sshd
tcp6 0 0 ::1:25 :::* LISTEN 958/master
tcp6 0 0 :::443 :::* LISTEN 812/httpd
tcp6 0 0 127.0.0.1:8006 :::* LISTEN 1160/java
udp 0 0 127.0.0.1:11211 0.0.0.0:* 1065/memcached
udp 0 0 0.0.0.0:68 0.0.0.0:* 756/dhclient
udp 0 0 0.0.0.0:28965 0.0.0.0:* 756/dhclient
udp6 0 0 :::50624 :::* 756/dhclient

杀死指定PID的进程

[root@host ~]#  kill 812

检验进程是否杀死

[root@host ~]#  netstat -ltunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1065/memcached
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1005/redis-server 1
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 816/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 958/master
tcp 0 0 10.247.110.35:95 0.0.0.0:* LISTEN 891/python
tcp6 0 0 :::8080 :::* LISTEN 1160/java
tcp6 0 0 :::22 :::* LISTEN 816/sshd
tcp6 0 0 ::1:25 :::* LISTEN 958/master
tcp6 0 0 127.0.0.1:8006 :::* LISTEN 1160/java
udp 0 0 127.0.0.1:11211 0.0.0.0:* 1065/memcached
udp 0 0 0.0.0.0:68 0.0.0.0:* 756/dhclient
udp 0 0 0.0.0.0:28965 0.0.0.0:* 756/dhclient
udp6 0 0 :::50624 :::* 756/dhclient

重启Nginx,此时没有残留进程占用80端口了

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

参考链接
1
2

Python3.8+Django2.2+uwsgi+supervisor+nginx 配置安装 整理这次配置及遇到的相关问题 安装: # yum install libffi-devel gcc gcc-c++ zlib zlib-devel readline-devel openssl-devel bzip2-devel sqlite-devel # yum -y install zlib-devel bzip2-devel openssl-devel ncurses-d... 阅读详情

相关推荐

Alibaba Cloud Linux 3.2 系统安装配置NGINX指南

Alibaba Cloud Linux 3.2系统上安装配置Nginx的完整指南。内容涵盖Nginx的核心功能(Web服务器、反向代理、API网关)、主要优势(高性能、高稳定性)以及典型应用场景。文章提供了从编译工具安装、Nginx下载解压、配置编译选项到启动验证的完整步骤说明,特别强调了常用模块的选择和HTTPS配置方法。通过清晰的命令行示例和配置说明,帮助用户快速搭建高性能的Nginx服务器环境,适用于静态网站托管、动态网站反向代理等多种应用场景。

qq_24724153的博客 881

Linux安装Nginx

文章目录前言一、下载Nginx二、安装Nginx服务器1. 解压Nginx压缩文件2. 安装Nginx服务器3. 查找Nginx工作目录4. Nginx命令总结 前言 最困难之时,就是我们离成功不远之日。 在安装好JDK与数据库后,在Linux系统中部署SpringBoot项目时还需要配置Nginx负载均衡以及反向代理,在此记录Nginx安装的过程 一、下载Nginx http://nginx.org/en/download.html 二、安装Nginx服务器 将下载好的压缩包上传到指定目录中

世纪末的架构师的博客 4268

Nuxt3打包部署到Linux(node+pm2安装和运行步骤+nginx代理)

部署Nuxt3项目流程,及用Nginx配置反向代理。

qq_67503717的博客 8303

Job for nginx.service failed because the control process exited with error code. See “systemctl stat

启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下: 1.nginx配置文件有错误 运行下面命令查看修改 nginx -t 2.已经启动nginx或者配置文件中的端口号被占用 检查端口是否被占用...

weixin_44486991的博客 6万+

SCL3400-D01双轴高精度倾角计

简介 两轴高精度加速度计,提供两个模式。 ±30° with 10 Hz LPF ±90° with 40 Hz LPF Resolution up to 32768 LSB/g Ultra-low 0.0009°/√Hz noise density 这款传感器是替换之前村田的停产的模拟量系列的芯片,正在测试中,具体效果大伙可以评测。 一、引脚连接图 引脚图兼容SCL3300 二、SPI接口 1.SCL3300和SCL3400略有区别如下图 左边为SCL3...

专注惯导领域 3808

Ai数字人直播系统搭建,本地源码部署,源码交付--支持OEM系统贴牌

AI 数字人直播系统是利用人工智能技术创建虚拟主播,并通过数字化技术实现直播互动的系统1。以下是其相关介绍:Ai数字人直播系统搭建,本地源码部署,源码交付--支持OEM系统贴牌。

weixin_ggwwsscc的博客 621

Job for nginx.service failed because the control process exited with error code.

nginx conf配置文件配置错误

m0_50176078的博客 1万+

ArcGIS中如何计算多个点到特定线的最短距离

现有一个点图层和一个面图层,怎么来计算这些点到这个面图层,两个面的公共边的最短直线距离呢? 1.首先得将两个图层都转为 投影坐标系 打开工具箱-数据管理工具-要素-面转线 ​ ​ 2.将面图层设为输入要素 注意要将“识别和存储面邻域信息”勾选 ​ 3.面转线成功后 打开线属性表,线图层拥有了 LEFT_FID和RIGHT_FID两个字段 ​ 4.按属性选择,表达式中输入 “LEFT_FID”<>-1 即可选出两个面的公共边 ​再将选...

GIS蒲公英的博客 6715

完美安装Nginx及错误解决

Nginx完美安装及安装过程中错误的解决

qq_55957975的博客 3209

PINN:当深度学习遇上朗伯-比尔定律

光谱数据处理中引入PINN的三种架构设计

qq_53529450的博客 154

Unreal Engine开发:角色动画与状态机_动画混合:通过混合节点实现平滑动画过渡

动画混合是提升游戏动画质量的关键技术之一。Unreal Engine提供了多种混合节点,包括BlendSpace1D、Blend Two By Bool、Blend Two By Alpha和Sequencer,每种节点适用于不同的场景。通过合理使用这些节点,可以实现平滑、自然且高效的动画过渡效果。此外,遵循最佳实践和高级应用技巧,可以进一步优化动画质量和性能。希望本节内容对你在Unreal Engine中实现动画混合有所帮助,使你的游戏角色动作更加流畅和自然。

chenlz2007的博客 1246

centos7 tengine2.3.0安装教程/nginx安装教程

首先记录一下tengine和nginx的区别 Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。目前最新版本2.3.0,继承Nginx-1.15.9的所有特性,兼容Nginx的配置。 tengine官网下载:http://tengine.taobao.org/ 安装tengine步骤只有三步 ./configure make...

新林的博客 2128

【Python办公】剪贴板记录工具(记录文本 + 图片防重复)

本文介绍了一个用Python开发的剪贴板记录工具,能够自动记录复制过的文本和图片内容。该工具使用tkinter构建GUI界面,通过后台线程实时监控剪贴板变化,具有文本记录、图片保存(自动去重)功能。核心代码采用pyperclip访问剪贴板,PIL处理图片,hashlib计算图片哈希值实现去重。运行程序后,文本内容直接显示在界面,图片保存为PNG文件并记录路径。工具还提供清空历史记录功能,适合日常办公中需要追踪剪贴板历史的使用场景。

weixin_42636075的博客 240

Windows 安装 PHP7.3+Nginx1.14.2 环境

Windows 安装 PHP7.3+Nginx1.14.2 环境 安装 PHP 下载 PHP,解压到盘符的任意一目录(我是在 F:\php\php-7.3.1) PHP 版本介绍 当下使用最多的 php 版本就是 5.6 以及 PHP7+,(如果您还在使用 5 的版本,那么我建议您升级到7以上,目前...

hedeqiang 1538

《ESP32单片机基础入门》第2章:开发环境搭建

【代码】《ESP32单片机基础入门》第2章:开发环境搭建。

2301_79143213的博客 582

Dify基础:Dify平台的本地化部署(含windows部署中,常见问题及解决方案)

第一种比较简单,只需要在浏览器中,打入https://dify.ai/就可以。这个指令虽然看起来简单,但实际上涉及到对docker的使用。这个项目既然有github地址,那它一般就是开源的。我们点开这个github地址,便能看到dify的私有化部署方式。我们可以看到,还是上面那个图,有个按钮,是指向该项目的Github地址的。第二步:按照dify的github给出的指令,对dify进行安装。第一步:我们把dify下载到自己的电脑(或者服务器)上。这里,我们只考虑第二种方式,也就是私有化部署。

xiezhipu的博客 1万+

nginx 1.2.3 源代码安装

1 安装相关组件 yum install -y gcc gcc-c++ autoconf automake\ yum install -y zlib zlib-devel opennsll openssl-devel pcre pcre-devel 2 下载 nginx 1.2.3 http://nginx.org/e...

weixin_33712881的博客 153

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

在 Ubuntu 22.04 上安装 Tengine-2.2.3(nginx)

在编译 Tengine 之前,需要安装一些必要的开发工具和库。

m0_37953185的博客 648

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Mac OS X 10.9.3上安装配置nginx-1.7.2

2014-06-27 wcdj

delphiwcdj的专栏 1万+

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

ThinkPHP学习(一) Windows下Nginx+PHP5+ThinkPHP_3.2.1的安装与配置

工具原料: Nginx153: 网盘下载地址:http://pan.baidu.com/s/1qWNgLf2 php-5.3.28-nts-Win32-VC9-x86 网盘下载地址:http://pan.baidu.com/s/1pdukY ThinkPHP_3.2.1 网盘下载地址:http://pan.baidu.com/s/1pJlpfuj RunHiddenConsole 是

无知人生,记录点滴 2万+

ThinkPHP学习(一) Windows下Nginx+PHP5+ThinkPHP 3 2 1的安装与配置

ThinkPHP学习(一) Windows下Nginx+PHP5+ThinkPHP 3 2 1的安装与配置

hftyfdg的博客 614

linux php5.4 nginx配置,linux上安装nginx1.2.3和php5.4.4

linux下安装nginx1.2.3和php5.4.4安装nginx1.2.3第一步:解压[root@test02 software]# tar zxvf nginx-1.2.3.tar.gz第二步:编译[root@test02 nginx-1.2.3]# ./configure --prefix=/usr/local/nginx-1.2.3[root@test02 nginx-1.2.3]# m...

weixin_42511201的博客 224

Nginx 学习 [2] - CentOS7.3 安装 Nginx

Nginx 学习 [2] - CentOS7.3 安装 Nginx 我们的口号: 简单粗暴 1. 安装依赖库 # 安装依赖库 yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel 借鉴linux安装openssl方法 openssl下载 wget https://mirrors.cloud.tencent.com/openssl/source/openssl-fips...

Chon.Wang 371

Nuxt3打包部署到Centos7(node18+pm2安装和运行步骤+nginx代理)

访问 https://unofficial-builds.nodejs.org/download/release/v18.20.4/ 下载名字为:node-v18.20.4-linux-x64-glibc-217.tar.gz 的node版本,该版本里面包含了glibc2.27。(2)在项目根目录准备一个ecosystem.config.cjs文件,通过pm2 start ecosystem.config.cjs可以执行./.output/server/index.mjs,以便启动项目。

bluejad的博客 1418

linux下安装nginx1.2.3和php5.4.4

安装nginx1.2.3 第一步:解压 [root@test02 software]# tar zxvf nginx-1.2.3.tar.gz   第二步:编译 [root@test02 nginx-1.2.3]# ./configure --prefix=/usr/local/nginx-1.2.3 [root@test02 nginx-1.2.3]# make [root@tes...

iteye_2369的博客 302

CentOS 6.2编译安装Nginx1.2.0+MySQL5.5.25+PHP5.3.13+博客系统WordPress3.3.2

说明: 操作系统:CentOS 6.2 32位 系统安装教程:CentOS 6.2安装(超级详细图解教程): http://www.osyunwei.com/archives/1537.html 准备篇: 一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器        CentOS 设置IP地址、网关、DNS教程:http:...

iteye_9263的博客 232
上一篇: 2.1 Linux系统服务器管理工具使用教程(Xshell 6篇)
下一篇: 3.6 安装wordpress
ptmicky
博客等级 码龄10年 10粉丝 7原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值