-
Install the the
shadowsocks-libev
package from apt repository.sudo apt update sudo apt install shadowsocks-libev
-
Save
ss.json
as/etc/shadowsocks-libev/config.json
.
#!/bin/sh | |
# sudo ./install-shadowsocks-local-service.sh | |
cp shadowsocks-local.default /etc/default/shadowsocks-local | |
cp shadowsocks-local.init /etc/init.d/shadowsocks-local | |
chmod +x /etc/init.d/shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc0.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc1.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc2.d/K01shadowsocks-local | |
ln -s ../init.d/shadowsocks-local /etc/rc3.d/K01shadowsocks-local |
# nginx.conf | |
http { | |
client_max_body_size 20M; #上传文件的大小 | |
} | |
------------------------------------------------------------------------------------ | |
#Nginx应用配置 | |
upstream app-name { | |
# 配置unicorn服务器器 | |
server unix:/opt/app-name/tmp/sockets/unicorn.sock |
# unicorn通过master进程管理worker进程,这里初始化工作进程的数量,默认为3个 | |
# 举例: AWS EC2 m3.2xlarge 设置30个worker | |
worker_processes Integer(ENV["UNICORN_CONCURRENCY"] || 3) | |
preload_app true | |
# 工作进程的响应超时时间(秒) | |
timeout 120 | |
listen "/tmp/sockets/unicorn.sock" | |
pid "/tmp/pids/unicorn.pid" | |
if ENV['RAILS_ENV'] == 'development' # 开发环境用于测试和验证一些配置 |
-
Boost 1.55.0(boost_1_55_0.zip)をダウンロードしてファイルを解凍する。(C:\boost_1_55_0)
http://www.boost.org/users/history/version_1_55_0.html
https://github.com/boostorg/boost/tree/boost-1.55.0 -
HPC Pack 2012 R2 MS-MPI Redistributable Package - 日本語(MSMPISetup.exe)をダウンロードしてインストールする。
Note that this validation runs both after the file is uploaded and after CarrierWave has processed the image. If your base uploader includes a filter to resize the image then the validation will be run against the resized image, not the original one that was uploaded. If this causes a problem for you, then you should avoid using a resizing filter on the base uploader and put any specific size requirements in a version instead.
So instead of this:
require 'carrierwave/processing/mini_magick'
class default_node { | |
package { 'apache2': | |
ensure => installed | |
} | |
service { 'apache2': | |
ensure => true, | |
enable => true, | |
require => Package['apache2'], | |
} | |
} |