linux
文章平均质量分 57
西蜀漫山桃花
这个作者很懒,什么都没留下…
展开
-
阿里云服务器使用pm2和nginx部署express项目
这里我默认已经安装好了pm2和nginx。没安装的可以看这里:nginx安装:阿里云服务器安装nginxpm2安装:阿里云服务器Centos7.5安装nodejs和pm2然后开始部署项目。一、nginx反向代理首先进入到nginx.conf文件中修改:vim /usr/local/nginx/conf/nginx.conf然后配置server里面的内容:这里描红的是你自己的Ip地址。二、pm2部署在usr下新建一个nodeProject目录,用来放置项目。原创 2021-02-06 15:14:35 · 423 阅读 · 0 评论 -
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
重启nginx时异常:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)这里有两种可能:一、nginx.conf里面的nginx.pid配置被注释了去掉#,解除注释就好了。二、没有指定配置目录。/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf然后重启nginx就好了。原创 2021-02-06 14:36:50 · 184 阅读 · 0 评论 -
阿里云服务器Centos7.5安装nodejs和pm2
1、cd进入到自己常用的放置安装包的文件夹(我这里是softwares)cd /export/export/softwares2、下载nodejswgethttps://nodejs.org/dist/v14.0.0/node-v14.0.0-linux-x64.tar.gz3、解压(-zxvf是解压.gz的)tar -zxvfnode-v14.0.0-linux-x64.tar.gz4、添加软连接(命令:ln -s源文件软链接文件)ln -s /export/so...原创 2021-02-05 11:26:09 · 220 阅读 · 0 评论 -
阿里云服务器安装nginx
一、使用yum安装编译环境gcc g++yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel如图所示:二、安装PCRE1、首先进入到常用的存放安装包的文件夹,我的是softwares文件夹。然后下载prce: wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz如图所示:...原创 2021-02-04 16:57:27 · 999 阅读 · 0 评论 -
Linux没有iptables,centos7安装iptables
1、检查iptables的状态,看看是否安装了。service iptables status2、发现真的没有安装,开始安装iptables和iptables-services。yum install -y iptablesyum install iptables-services3、查看状态service iptables status4、停止和禁用防火墙systemctl stop firewalldsystemctl mask firewalld5、开始配置ip原创 2021-02-04 17:33:12 · 490 阅读 · 0 评论