Fork me on GitHub
DongSheng's Blog

记录点滴,不断突破


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

  • 站点地图

  • 申请友链

  • 热度

  • 搜索

GitHub项目徽章的添加和设置

发表于 2018-01-09 | 分类于 Git | | 阅读次数   |   字数统计: 1,671(字)   |   阅读时长: 7(分)
介绍GitHub项目徽章的添加和设置
阅读全文 »

基于Gogs+Drone搭建的私有CI/CD平台

发表于 2018-01-06 | 分类于 CI/CD | | 阅读次数   |   字数统计: 2,583(字)   |   阅读时长: 14(分)
打造基于Docker的私有CI/CD平台
阅读全文 »

Nginx知识梳理-部署

发表于 2018-01-05 | 分类于 Linux运维 | | 阅读次数   |   字数统计: 521(字)   |   阅读时长: 3(分)

官网文档

Installation on Linux

使用稳定版本的预构建包

环境介绍

1
2
3
4
5
6
# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
# uname -r
3.10.0-327.el7.x86_64
# uname -m
x86_64

添加源文件

1
2
3
4
5
6
7
8
9
cat >/etc/yum.repos.d/nginx.repo<<EOF
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
EOF
sed -i 's/OS/centos/g' nginx.repo # 根据系统类型替换为rhel或centos
sed -i 's/OSRELEASE/7/g' nginx.repo # 根据系统版本替换为6或者7

部署

1
2
3
4
5
# yum install -y nginx
# systemctl start nginx
# systemctl enable nginx
# netstat -tunlp|grep nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2683/nginx: master

Building from Sources

下载

官网下载,选择nginx-1.12.2版本
官网参数讲解

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# wget https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.gz
# tar -zxf pcre-8.41.tar.gz
# wget http://zlib.net/zlib-1.2.11.tar.xz
# xz -d zlib-1.2.11.tar.xz
# tar -xf zlib-1.2.11.tar
# wget http://nginx.org/download/nginx-1.12.2.tar.gz
# tar -zxf nginx-1.12.2.tar.gz
# cd nginx-1.12.2/
# tree -L 1
.
├── auto
├── CHANGES
├── CHANGES.ru
├── conf
├── configure
├── contrib
├── html
├── LICENSE
├── man
├── README
└── src
# cd nginx-1.12.2/
# ./configure
--sbin-path=/usr/local/nginx/nginx
--conf-path=/usr/local/nginx/nginx.conf
--pid-path=/usr/local/nginx/nginx.pid
--with-http_ssl_module
--with-pcre=../pcre-8.41
--with-zlib=../zlib-1.2.11
# make
# make install
# tree
.
├── client_body_temp
├── fastcgi.conf
├── fastcgi.conf.default
├── fastcgi_params
├── fastcgi_params.default
├── fastcgi_temp
├── html
│   ├── 50x.html
│   └── index.html
├── koi-utf
├── koi-win
├── logs
│   ├── access.log
│   └── error.log
├── mime.types
├── mime.types.default
├── nginx
├── nginx.conf
├── nginx.conf.default
├── nginx.pid
├── proxy_temp
├── scgi_params
├── scgi_params.default
├── scgi_temp
├── uwsgi_params
├── uwsgi_params.default
├── uwsgi_temp
└── win-utf

#

======================================================
希望各位朋友支持一下

  • 领取我的阿里云幸运券,谢谢.
  • 使用腾讯云资源
  • Linode VPS
  • 搬瓦工VPS
  • 阿里云1888元云产品通用代金券点我
  • 阿里云最新活动全民云计算升级-拼团上云更优惠

本文作者:dongsheng
本文地址: https://mds1455975151.github.io/archives/2589ba06.html
版权声明:转载请注明出处!

NodeJS报错一例

发表于 2018-01-04 | 分类于 Linux运维 | | 阅读次数   |   字数统计: 233(字)   |   阅读时长: 1(分)

环境说明

1
2
3
4
5
6
[root@linux-node7 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@linux-node7 ~]# uname -r
3.10.0-327.el7.x86_64
[root@linux-node7 ~]# uname -m
x86_64

报错

安装NodeJS时报错

1
2
3
4
5
6
7
8
# yum install -y npm
# npm config set registry https://registry.npm.taobao.org
# npm info underscore
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
# npm install -g n
# n stable
# node -v
# npm -v

解决

1
# yum update -y openssl

参考资料

https://stackoverflow.com/questions/46473376/node-relocation-error-node-symbol-ssl-set-cert-cb-version-libssl-so-10-not-d

======================================================
希望各位朋友支持一下

  • 领取我的阿里云幸运券,谢谢.
  • 使用腾讯云资源
  • Linode VPS
  • 搬瓦工VPS
  • 阿里云1888元云产品通用代金券点我
  • 阿里云最新活动全民云计算升级-拼团上云更优惠

本文作者:dongsheng
本文地址: https://mds1455975151.github.io/archives/1ebf3c88.html
版权声明:转载请注明出处!

RabbitMQ进阶

发表于 2018-01-04 | 分类于 Linux运维 | | 阅读次数   |   字数统计: 385(字)   |   阅读时长: 1(分)

前言

RabbitMQ 目前有三种命令行工具:

  • rabbitmqctl:一般用于管理员操作使用
  • rabbitmq-plugins:插件管理
  • rabbitmqadmin:通过HTTP API进行管理员操作

不同工具在不同的场景下使用,例如:

  • rabbitmqctl通常只有RabbitMQ管理员才能使用,因为它提供了对节点的完全控制,包括虚拟主机,用户和权限管理,对节点数据的破坏性操作等等。
  • rabbitmqadmin建立在HTTP API之上,并使用不同的机制,只有HTTP API端口打开。

rabbitmqctl

RabbitMQ附带的原始CLI工具。它支持广泛的业务,主要是管理(业务)性质。
主要功能如下:

  • 停止节点
  • 访问节点状态,有效配置,健康检查
  • 虚拟主机管理
  • 用户和权限管理
  • 政策管理
  • 列出队列,连接,渠道,交流,消费者
  • 集群成员管理
    官网资料

rabbitmq-plugins

rabbitmq-plugins是一个用于管理RabbitMQ代理插件的命令行工具。它允许启用,禁用和浏览插件。它必须由具有对RabbitMQ配置目录的写入权限的用户运行。
官网资料

rabbitmqadmin

官网资料

======================================================
希望各位朋友支持一下

  • 领取我的阿里云幸运券,谢谢.
  • 使用腾讯云资源
  • Linode VPS
  • 搬瓦工VPS
  • 阿里云1888元云产品通用代金券点我
  • 阿里云最新活动全民云计算升级-拼团上云更优惠

本文作者:dongsheng
本文地址: https://mds1455975151.github.io/archives/8085bd15.html
版权声明:转载请注明出处!

1…252627…44
DongSheng

DongSheng

技术、产品、管理、思维格局

219 日志
28 分类
345 标签
RSS
GitHub ZhiHu Youtube Email
友情链接
  • Bob`S BLOG
  • 冰水鉴心
  • 客舍青青
  • easyAI-人工智能知识库
© 2017 - 2023 DongSheng
百度分析
由 Hexo 强力驱动
主题 - NexT.Mist   |  本站总访问量次   |  本站访客数人次