原创 gitlab遷移實踐

因辦公室環境網絡調整,近期計劃將gitlab從內網機房遷移至公有云。遷移過程做了一下簡單的記錄,希望對各位同行有所幫助。 舊服務器A centos6.9 10.1.2.10 gitlab-ce-8.16.0-ce.0.el6.x86_

原创 Mac下安裝redis-rdb-tools工具

1.Mac安裝包管理工具Homebrew: $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install

原创 通過Jenkins調用api設置Kong的權重不正確日誌中出現no memory

【背景描述】:通過調用kongAPI編寫腳本,實現對kong的target權重的設置,即流量的摘除與添加操作。 【問題描述】:通過Jenkins構建完成後,出現兩種異常情況:1、kong的target少了一個節點,比如本應該是3個節點,最後

原创 如何通過jenkin將gitlab代碼打包上傳到阿里雲鏡像倉庫

== == == if [ x"$tag" = x ];thentag=latestfidocker login --username=docker@123121231971164212 --password=test123 regis

原创 kibana出現Warning No default index pattern的解決辦法

【問題描述】:Warning No default index pattern. You must select or create one to continue.【排查分析】:1、提示的是:沒有默認的index pattern(索引模式

原创 error: failed to push some refs to '[email protected]'

【問題描述】:通過 git push -u origin master 提交代碼時出現如下報錯: ##git push -u origin master Enumerating objects: 96, done. Counting obj

原创 VBoxManage: error: Failed to create the host-only

【問題描述】:vagrant up 失敗,報錯如下:centos7$ vagrant upBringing machine 'do1' up with 'virtualbox' provider...Bringing machine 'do

原创 mongod.service start operation timed out報錯

【問題描述】:Mongodb無法正常啓動 [root@host01 mongo]# systemctl start mongod.serviceJob for mongod.service failed because a timeout

原创 連接vipin後無法訪問虛擬機VMWARE

大家好:        給大家分享個小知識:因最近公司信息安全需要,在公司外部訪問公司郵箱、協同等網站時,需要連接SSLvipin。連接SSLvipin後,導致不能訪問虛擬機,該問題應該給大家造成不便。現按照以下方法處理,可實現連接vipi

原创 Gitlab+Gerrit+Ldap+nginx+mysql 之Gerrit搭建與配置(一)

公司之前一直用gitlab來存放項目代碼 ,目前因爲業務需要(代碼bug太多)需要引入gerrit來進行code review。 最初用的是centos 7.4,但是安裝完成後,GerritResource中沒有ALL_Project.gi

原创 Gitlab+Gerrit+Ldap+nginx+mysql 之 Gerrit 操作流程(二)

Gitlab+Gerrit+Ldap+nginx+mysql 之 Gerrit 操作流程1、配置SSH keyi) 打開http://gerrit.baidu.com網頁,使用郵箱(不加後綴)和密碼登錄 ii)打開設置頁面-SSH Pub

原创 通過wkhtmltox工具將html文件轉爲pdf文件

部署方案包括wkhtmltox工具(命令),和php的wkhtmltox擴展。1 部署wkhtmltox工具,rpm包方式。原帖可參考:http://www.lijinquan.com/php%E6%89%A9%E5%B1%95wkhtml

原创 centos6.5用memcached 來作PHP 的session.save_handler

php有兩個memcache模塊,一個是php-memcache,一個是php-memcached,php-memcached是最新的,也是比較穩定的,網上的太多的資料都是關於php-memcache的,太少提到php-memcached,

原创 針對幽靈漏洞對glibc進行升級

   前一段時間出現幽靈漏洞,雖然及時做了修復,即對glibc進行升級,但是沒時間整理文檔,現在簡單整理一下,希望對大家有用。   對於內網服務器,沒有辦法進行連接公網,無法用 yum update glibc或rpm -Uvh glibc

原创 Linux下HAProxy+keepalived雙機高可用方案

    Keepalived 的作用是檢測web服務器的狀態,如果有一臺web服務器死機,或工作出現故障,Keepalived將檢測到,並將有故障的web服務器從系統中剔除, 當web服務器工作正常後Keepalived自動將web服務器加