Skip to content

Instantly share code, notes, and snippets.

@DuyNguyen1879
DuyNguyen1879 / install-odoo.sh
Created June 18, 2020 04:01 — forked from daothanh/install-odoo.sh
Install odoo 12 on Centos 7 with nginx
yum update
yum install epel-release -y
yum install centos-release-scl -y
yum install git wget ibxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel -y
sudo yum groupinstall 'Development Tools' -y
## Gist url
export GIST_URL="https://gist.github.com/daothanh/2f9be5af944e7cb92c84ceb64c4bc3fd/raw"
export ODOO_DOMAIN=webcongty.pro
export ODOO_PASSWORD=abc@123
@DuyNguyen1879
DuyNguyen1879 / compile.sh
Created April 8, 2020 13:49 — forked from roxlu/compile.sh
NGINX + PHP + configuration
#!/bin/sh
# Compiling nginx + php + mysql on Mac OSX 10.9
# ---------------------------------------------
#
#
# CONFIGURE
# ---------------
# 1) Edit `conf/nginx.conf` and add this to the between the server { ... } config.
# NOTE: the current config you only need to uncomment the example that looks like this,
@DuyNguyen1879
DuyNguyen1879 / compile-php-5.3.27-and-run-as-fastcgi-mode.sh
Created April 8, 2020 13:46 — forked from liyang85/compile-php-5.3.27-and-run-as-fastcgi-mode.sh
Compile php-5.3.27 and run as FastCGI mode with Nginx & MySQL
cd /home/oldboy/tools
# 1. Install dependencies
# Part 1: yum install
yum install -y \
freetype-devel \
gd-devel \
libcurl-devel \
libjpeg-turbo-devel \
libpng-devel \
@DuyNguyen1879
DuyNguyen1879 / compile.sh
Last active April 8, 2020 13:46 — forked from roxlu/compile.sh
NGINX + PHP + MySQL
#!/bin/sh
# Compiling nginx + php + mysql on Mac OSX 10.9
# ---------------------------------------------
#
#
# CONFIGURE
# ---------------
# 1) Edit `conf/nginx.conf` and add this to the between the server { ... } config.
# NOTE: the current config you only need to uncomment the example that looks like this,
@DuyNguyen1879
DuyNguyen1879 / nginx-compile.sh
Created April 8, 2020 13:46 — forked from felipebergamaschi/nginx-compile.sh
nginx compile and install
mkdir -p /opt/compile-nginx
cd /opt/compile-nginx
yum groupinstall -y 'Development Tools'
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
tar -zxf pcre-8.41.tar.gz
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxf zlib-1.2.11.tar.gz
@DuyNguyen1879
DuyNguyen1879 / install_ngx_with_lua.sh
Created April 3, 2020 15:36 — forked from Ivlyth/install_ngx_with_lua.sh
compile nginx with Luajit2.0
mkdir ngx-with-lua
cd ngx-with-lua
current_dir=`pwd`
# download luajit
wget http://luajit.org/download/LuaJIT-2.0.4.tar.gz
tar -xf LuaJIT-2.0.4.tar.gz
cd LuaJIT-2.0.4
make && make install
@DuyNguyen1879
DuyNguyen1879 / deploy_nginx_with_lua_nginx_module.sh
Created April 3, 2020 15:34 — forked from karminski/deploy_nginx_with_lua_nginx_module.sh
nginx with lua-nginx-module auto deploy scripts
#!/bin/bash
# deploy_nginx_with_lua_nginx_module.sh
# @version 171026:7
# @author karminski <[email protected]>
#
# @changes
# 171026:7 CHANGE to nginx-1.10.3, lua-nginx-module-v0.10.10, luajit2-v2.1-20170925
# 170825:6 REMOVE --with-debug compile option to solve peformance issue.
# 170627:5 CHANGE to nginx-1.10.3, lua-nginx-module-v0.10.8
# 161226:4 CHANGE to nginx-1.10.2, lua-nginx-module-v0.10.8, luajit2-v2.1-20161104
@DuyNguyen1879
DuyNguyen1879 / ngx-lua.sh
Created April 3, 2020 15:33 — forked from bsidhu009/ngx-lua.sh
ngx-lua.sh
#!/bin/sh
# Script to compile nginx on ubuntu with lua support.
#Original https://gist.github.com/hit9/0d28034500c58c0c3a9f/raw/1e13a96bc245f3d040fc9cd01e39b98eeeffaf9d/ngx-lua.sh
NGX_VERSION='1.16.1' # or try 1.17.4
LUAJIT_VERSION='2.0.5'
LUAJIT_MAJOR_VERSION='2.0'
NGX_DEVEL_KIT_VERSION='0.3.1'
LUA_NGINX_MODULE_VERSION='0.10.15'
@DuyNguyen1879
DuyNguyen1879 / nginx with lua
Created April 3, 2020 15:33 — forked from therealssj/nginx with lua
install nginx with lua support
#!/bin/sh
# Script to compile nginx on ubuntu with lua support.
NGX_VERSION='1.13.1'
LUAJIT_VERSION='2.0.5'
LUAJIT_MAJOR_VERSION='2.0'
NGX_DEVEL_KIT_VERSION='0.3.0'
LUA_NGINX_MODULE_VERSION='0.10.9rc6'