nginx改tengine,gitlab重装操作步骤,tenginegitlab


  1. nginx改tengine

yum -y install gcc gcc-c++ gd gd-devel

cd libunwind-1.1

LAGS=-fPIC ./configure --prefix=/usr/local

make LAGS=-fPIC

make LAGS=-fPIC install

cd gperftools-2.0

./configure --prefix=/usr/local

make && make install

上面两个包需要重新编译

拷贝原来安装的tengine

ls /opt/src,复制到这台机器

1 2 3 gperftools-2.0  nginx-accesskey-2.0.3   ngx-fancyindex  pcre-8.35      zlib-1.2.8 libunwind-1.1   nginx_tcp_proxy_module  openssl-1.0.0o  ruby-2.2.3 nginx-1.6.2     ngx_cache_purge-2.2     openssl-1.0.2   tengine-2.1.2

cd /usr/local/

tar cvzf tengine.tar.gz openssl pcre zlib tengine 需要的一些依赖包

最后一步

ln -s /usr/local/lib/libunwind.so /lib64/libunwind.so.8

ln -s /usr/local/lib/libprofiler.so.0 /lib64

启动

/etc/init.d/tengine start


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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 ./nginx -V loaded modules:     ngx_core_module (static)     ngx_errlog_module (static)     ngx_conf_module (static)     ngx_dso_module (static)     ngx_syslog_module (static)     ngx_events_module (static)     ngx_event_core_module (static)     ngx_epoll_module (static)     ngx_poll_module (static)     ngx_tcp_module (static)     ngx_tcp_core_module (static)     ngx_tcp_upstream_module (static)     ngx_tcp_proxy_module (static)     ngx_tcp_websocket_module (static)     ngx_tcp_upstream_ip_hash_module (static)     ngx_tcp_upstream_busyness_module (static)     ngx_tcp_ssl_module (static)     ngx_procs_module (static)     ngx_proc_core_module (static)     ngx_openssl_module (static)     ngx_regex_module (static)     ngx_http_module (static)     ngx_http_core_module (static)     ngx_http_log_module (static)     ngx_http_upstream_module (static)     ngx_http_static_module (static)     ngx_http_gzip_static_module (static)     ngx_http_autoindex_module (static)     ngx_http_fancyindex_module (static)     ngx_http_index_module (static)     ngx_http_access_module (shared, 3.1)     ngx_http_limit_req_module (shared, 3.1)     ngx_http_auth_basic_module (static)     ngx_http_limit_conn_module (shared, 3.1)     ngx_http_realip_module (static)     ngx_http_geo_module (static)     ngx_http_map_module (static)     ngx_http_split_clients_module (static)     ngx_http_referer_module (static)     ngx_http_ssl_module (static)     ngx_http_proxy_module (static)     ngx_http_fastcgi_module (static)     ngx_http_uwsgi_module (static)     ngx_http_scgi_module (static)     ngx_http_empty_gif_module (static)     ngx_http_browser_module (static)     ngx_http_concat_module (shared, 3.1)     ngx_http_user_agent_module (static)     ngx_http_rewrite_module (shared, 3.1)     ngx_http_sysguard_module (static)     ngx_http_upstream_consistent_hash_module (static)     ngx_http_upstream_check_module (static)     ngx_http_upstream_keepalive_module (static)     ngx_http_upstream_dynamic_module (static)     ngx_http_stub_status_module (static)     ngx_http_accesskey_module (static)     ngx_tcp_upstream_check_status_module (static)     ngx_http_write_filter_module (static)     ngx_http_header_filter_module (static)     ngx_http_chunked_filter_module (static)     ngx_http_range_header_filter_module (static)     ngx_http_gzip_filter_module (static)     ngx_http_postpone_filter_module (static)     ngx_http_ssi_filter_module (static)     ngx_http_charset_filter_module (static)     ngx_http_image_filter_module (static)     ngx_http_sub_filter_module (static)     ngx_http_userid_filter_module (static)     ngx_http_trim_filter_module (shared, 3.1)     ngx_http_footer_filter_module (static)     ngx_http_upstream_session_sticky_module (shared, 3.1)     ngx_http_headers_filter_module (static)     ngx_http_reqstat_module (static)     ngx_http_cache_purge_module (shared, 3.1)     ngx_http_copy_filter_module (static)     ngx_http_range_body_filter_module (static)     ngx_http_not_modified_filter_module (static)     ngx_google_perftools_module (static)


gitlab重装操作步骤

参考 http://lansgg.blog.51cto.com/5675165/1760578

要注意的是,gitlab有个.gitlab_shell_secret,gitlab-shell也有一个,如果你查看gitlab-shell.log,报401错误,那么有可能是这两个文件不一样,实际上就是token。每次安装都会生成,如果你直接cp,以前的和现在安装的就会不一样,我碰到过。

重装的话,参考上面的文档

1.注意gitlab的版本,gitlab安装其实就是在安装ruby的一些依赖包,要保证每一步都是正确的

2.redis最好改成127.0.0.1或则机器ip

3.需要以前的gitlab mysql备份数据库,然后导入到这台上

4.如果tenginx设置端口的,不是默认的80的话,两个config.xml的host都要修改



本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1789082,如需转载请自行联系原作者

相关内容