V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  luo362722353  ›  全部回复第 31 页 / 共 43 页
回复总数  860
1 ... 27  28  29  30  31  32  33  34  35  36 ... 43  
@sasber 有1500+的可用IP
216/24
223/24
区间都可用
2015-01-29 02:24:52 +08:00
回复了 miyuki 创建的主题 问与答 一夜之间变 10 开头的内网 IP 的用户请前来报到
早就内网ip好久了…话说去年…
2015-01-28 13:18:56 +08:00
回复了 watara 创建的主题 问与答 视频网站哪家强?
dvb信号吧
2015-01-28 13:10:17 +08:00
回复了 dexbol 创建的主题 VPS 请教 DO 的机房怎么选?
@wezzard 我也是…240我都没戏…也就推特,油桶…脸书耍耍了
2015-01-28 13:07:36 +08:00
回复了 dexbol 创建的主题 VPS 请教 DO 的机房怎么选?
@dexbol 我这的电信,用新加坡我得看着他哭的… 伦敦速度还可以-_-||…我估计是踩的人少
2015-01-28 11:29:10 +08:00
回复了 dexbol 创建的主题 VPS 请教 DO 的机房怎么选?
do新加坡电信是渣…建议用伦敦节点吧,我个人是感觉还可以
2015-01-28 02:31:27 +08:00
回复了 wzb350 创建的主题 互联网 一些国外网盘,大家可以试试看看
cloud.mail.ru也不错
2015-01-28 02:22:12 +08:00
回复了 Tianpu 创建的主题 分享发现 被 GFW DDOS 了
@jjx VPN还是可以的
@chilaoqi 阿里在浙江做过这样的案例的,当时是渲染电影和阿里签的
2015-01-22 20:10:07 +08:00
回复了 kingwrcy 创建的主题 问与答 cetnos apace 多网站配置问题
def添加80配置…不然直接去了abc.com
2015-01-22 12:14:36 +08:00
回复了 Niphor 创建的主题 问与答 反代了 Google,火狐访问提示"内容损坏错误"(v35,36b2)
@Niphor https://ibd.pt https://www.ibd.pt你看看,貌似没错啊
2015-01-22 04:10:30 +08:00
回复了 Niphor 创建的主题 问与答 反代了 Google,火狐访问提示"内容损坏错误"(v35,36b2)
我贴一下我的demo,楼主你看看有没有互相学习的…我也是小白一枚

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install libpcre3 libpcre3-dev zlib1g-dev libssl-dev build-essential git
mkdir nginx && cd nginx
wget http://nginx.org/download/nginx-1.7.9.tar.gz
tar -xvf nginx-1.7.9.tar.gz
git clone https://github.com/cuber/ngx_http_google_filter_module
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
cd nginx-1.7.9
mkdir /var/tmp/nginx

./configure \
--prefix=/usr --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-scgi-temp-path=/var/tmp/nginx/scgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module \
--add-module=/root/nginx/ngx_http_google_filter_module \
--add-module=/root/nginx/ngx_http_substitutions_filter_module

make && make install

cd /etc/init.d/
vi nginx

#!/bin/sh

### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/nginx
NAME=nginx
DESC=nginx

# Include nginx defaults if available
if [ -f /etc/default/nginx ]; then
. /etc/default/nginx
fi

test -x $DAEMON || exit 0

set -e

. /lib/lsb/init-functions

test_nginx_config() {
if $DAEMON -t $DAEMON_OPTS >/dev/null 2>&1; then
return 0
else
$DAEMON -t $DAEMON_OPTS
return $?
fi
}

case "$1" in
start)
echo -n "Starting $DESC: "
test_nginx_config
# Check if the ULIMIT is set in /etc/default/nginx
if [ -n "$ULIMIT" ]; then
# Set the ulimits
ulimit $ULIMIT
fi
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS || true
echo "$NAME."
;;

stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON || true
echo "$NAME."
;;

restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON || true
sleep 1
test_nginx_config
# Check if the ULIMIT is set in /etc/default/nginx
if [ -n "$ULIMIT" ]; then
# Set the ulimits
ulimit $ULIMIT
fi
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true
echo "$NAME."
;;

reload)
echo -n "Reloading $DESC configuration: "
test_nginx_config
start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON || true
echo "$NAME."
;;

configtest|testconfig)
echo -n "Testing $DESC configuration: "
if test_nginx_config; then
echo "$NAME."
else
exit $?
fi
;;

status)
status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx && exit 0 || exit $?
;;
*)
echo "Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest}" >&2
exit 1
;;
esac

exit 0

sudo chmod +x ./nginx
sudo update-rc.d nginx defaults


rm -rf /etc/nginx/nginx.conf
vi /etc/nginx/nginx.conf

worker_processes 4;
pid /var/run/nginx.pid;

events {
worker_connections 768;
}

http {

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
proxy_temp_file_write_size 128k;
proxy_temp_path /var/cache/nginx/temp;
proxy_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=cache_one:100m inactive=7d max_size=10g;

gzip_static on;
gzip on;
gzip_disable "msie6";

include /etc/nginx/sites-enabled/*;
}

mkdir -p /etc/nginx/sites-enabled
mkdir -p /var/log/nginx
mkdir -p /var/cache/nginx/cache
mkdir -p /var/cache/nginx/temp

nginx -t

mkdir -p /root/ssl && cd /root/ssl
vi domain.crt
vi domain.key
vi /etc/nginx/sites-enabled/google.conf


server {
listen 80;
server_name xxx.pt www.xxx.pt;
return 301 https://www.xxx.pt$request_uri;
}

server {
listen 443 ssl;
server_name xxx.pt www.xxx.pt;

ssl on;
ssl_certificate /root/ssl/xxx.pt.crt;
ssl_certificate_key /root/ssl/xxx.pt.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
keepalive_timeout 70;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

resolver 8.8.8.8;

location / {
google on;
google_scholar on;
google_robots_allow on;

}
}
2015-01-21 17:07:01 +08:00
回复了 willme105 创建的主题 CDN 国内 CDN 哪家强?
加速乐不太行了…不过你要用国内的,你得备案吧?不然你没办法用国内cdn啊
@chilaoqi 找阿里谈,签协议就好了,cpu不需要超售,所有硬件分配全部统一即可
1 ... 27  28  29  30  31  32  33  34  35  36 ... 43  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1126 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 22:43 · PVG 06:43 · LAX 14:43 · JFK 17:43
Developed with CodeLauncher
♥ Do have faith in what you're doing.