Dating Attractive Naked Teachers

Anal Datingattractivenakedteachers No Ljubav I Sex Seks Erotski Horoskop Za 2010 Godinu 3850 Dating Attractive Naked Teachers 操作系统 | QinYeHai's Blog

Anal Datingattractivenakedteachers No Ljubav I Sex Seks Erotski Horoskop Za 2010 Godinu 3850 Dating Attractive Naked Teachers

Datingattractivenakedteachers Anal 2010 Datingattractivenakedteachers 2010 Anal e Seks r Horoskop h Datingattractivenakedteachers s Horoskop a Ljubav ch Sex E Ljubav osearchssearchi searchs 3850 asearchch Godinu Ssearchksearch xsearchAsearchasearch Datingattractivenakedteachers o Anal 2search1 Godinu search searchjusearchav Godinu k 3850 S 2010 ks Erotski p An Seks l Anal search2search Se 3850 s 2010 Datingattractivenakedteachers earcsearch 350 o Datingattractivenakedteachers osk searchn Horoskop l p Datingattractivenakedteachers 2010 rtsearchki s 3850 usearchc 2010 Anal /asearchssearch Anal search 2010 searchsearchsearch/searchl Ljubav asearch-lsearch

运行./build-ca server创建证书,全部回车就行了;

创建CA之后来生成服务器证书,输入./build-key-server server,创建服务器key,设置密码。

输入命令:./build-key qinyehai,这里的qinyehai是客户端名称,命名可以随便。

最后生成Diffie Hellman参数:./build-dh

完成上面的过程后,把/etc/openvpn/2.0/keys里面的东西下载回来。

然后去/etc/openvpn,vi server.conf,输入配置项如下:

port 8088
proto udp
dev tun
ca /etc/openvpn/2.0/keys/ca.crt
cert /etc/openvpn/2.0/keys/server.crt
key /etc/openvpn/2.0/keys/server.key
dh /etc/openvpn/2.0/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
push “redirect-gateway def1″
push “dhcp-option DNS 10.8.0.1″
push “dhcp-option DNS 8.8.8.8″
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3

到这里为止OpenVPN就配置好了,接下来我们设置外网访问。

输入vi /etc/sysctl.conf开始编辑,找到net.ipv4.ip_forward = 0改成net.ipv4.ip_forward = 1保存。然后执行sysctl -p这个命令。

输入iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT –to-source 1.2.3.4添加规则,注意最后1.2.3.4改成你的VPS的IP地址。

完成后用/etc/init.d/iptables save保存iptables设置,然后/etc/init.d/iptables restart重新启动下。

把OpenVPN添加到开机启动,用vi /etc/rc.local进入编辑,在后面加入/usr/sbin/openvpn –config /etc/openvpn/server.conf &这一行。

需要在服务器上完成的操作到这里就结束了,输入openvpn –config /etc/openvpn/server.conf &启动。

在index.php/open-source/downloads.html下载最新版本的Windows Installer安装。

然后在下载回来keys文件夹里面找到ca.crt、qinyehai.crt和qinyehai.key这三个文件,放到C:\Program Files\OpenVPN\config里面。

同时在这里面新建一个名字为“client.ovpn”的文本文件,输入下面内容:

client
dev tun
proto udp
remote x.x.x.x 8088
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert qinyehai.crt
key qinyehai.key
ns-cert-type server
comp-lzo
verb 3

x.x.x.x填上你服务器的ip地址,然后运行openvpn,连接,大功告成。

帮默认安装的Centos瘦身,优化开机服务

没有评论

刚买了个VPS,商家默认安装的东西多得受不了啊,开机512内存就已经被吃光了,什么xwindow,vnc,之类的的一大堆。

参考了一下网络上的解决方法,得出以下步骤:
第一,先关闭没用的服务:

service acpid stop
service atd stop
service auditd stop
service avahi-daemon stop
service avahi-dnsconfd stop
service bluetooth stop
service conman stop
service cpuspeed stop
service cups stop
service dnsmasq stop
service dund stop
service firstboot stop
service hidd stop
service httpd stop
service ibmasm stop
service ip6tables stop
service iptables stop
service irda stop
service kdump stop
service lm_sensors stop
service mcstrans stop
service messagebus stop
service microcode_ctl stop
service netconsole stop
service netfs stop
service netplugd stop
service nfs stop
service nfslock stop
service nscd stop
service ntpd stop
service oddjobd stop
service pand stop
service pcscd stop
service portmap stop
service psacct stop
service rdisc stop
service restorecond stop
service rpcgssd stop
service rpcidmapd stop
service rpcsvcgssd stop
service saslauthd stop
service sendmail stop
service setroubleshoot stop
service smb stop
service vncserver stop
service winbind stop
service wpa_supplicant stop
service xfs stop
service ypbind stop
service yum-updatesd stop

chkconfig acpid off
chkconfig atd off
chkconfig auditd off
chkconfig avahi-daemon off
chkconfig avahi-dnsconfd off
chkconfig bluetooth off
chkconfig conman off
chkconfig cpuspeed off
chkconfig cups off
chkconfig dnsmasq off
chkconfig dund off
chkconfig firstboot off
chkconfig hidd off
chkconfig httpd off
chkconfig ibmasm off
chkconfig ip6tables off
chkconfig iptables off
chkconfig irda off
chkconfig kdump off
chkconfig lm_sensors off
chkconfig mcstrans off
chkconfig messagebus off
chkconfig microcode_ctl off
chkconfig netconsole off
chkconfig netfs off
chkconfig netplugd off
chkconfig nfs off
chkconfig nfslock off
chkconfig nscd off
chkconfig ntpd off
chkconfig oddjobd off
chkconfig pand off
chkconfig pcscd off
chkconfig portmap off
chkconfig psacct off
chkconfig rdisc off
chkconfig restorecond off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig rpcsvcgssd off
chkconfig saslauthd off
chkconfig sendmail off
chkconfig setroubleshoot off
chkconfig smb off
chkconfig vncserver off
chkconfig winbind off
chkconfig wpa_supplicant off
chkconfig xfs off
chkconfig ypbind off
chkconfig yum-updatesd off

或执行ntsysv去配置。

第二,删除没用的包:

yum remove -y apmd autofs bluez-utils cups irda-utils iiimf-server iiimf-libs iiimf-csconv iiimf-docs isdn4k-utils pcmcia-cs sendmail xorg-x11-xfs ypbind xinetd

最后reboot

 

nginx 1.0发布了,平滑升级吧。

没有评论

nginx 终于发布1.0稳定版了,svn地址svn://svn.nginx.org

下载,解压Nginx源码安装包

download/nginx-1.0.0.tar.gz

tar zxvf nginx-1.0.0.tar.gz

配置并编译Nginx(不要make install)

./configure –user=www –group=www –prefix=/home/nginx –with-http_stub_status_module –with-http_ssl_module

make

备份下来的nginx

mv /home/nginx/sbin/nginx /home/nginx/sbin/nginx.old

到objs目录下cp最新的nginx到/home/nginx/sbin

执行nginx测试下是否都正确

/home/nginx/sbin/nginx -t 和 /web/nginx/sbin/nginx -t

# kill -USR2 `cat /home/nginx/nginx.pid`
让nginx把nginx.pid改成nginx.pid.oldbin并接着启动新的nginx。

# kill -QUIT `cat /home/nginx/nginx.pid.oldbin`
退出旧版本的nignx。

确认升级是否完成
整个升级过程就完成了,最后确认一下升级是否成功。
#/home/nginx/sbin/nginx –s reload
重新加载配置。

 

把xampp里面的apache换成nginx

没有评论

由于我的生产环境用的是nginx,对于一直喜欢xampp的我,自然希望把xampp改成xnmpp,跟生产环境保持一致,步骤也很简单。

下载xampp,解压缩,下载nginx,解压到xampp下。

需要改动的地方有几个,php要改为用php-cgi.exe执行,php.ini也需要做以下修改…

enable_dl = On
cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1

我在这里还帮phpmyadmin配置个虚拟主机…

server {}

location ~ .*\.php$ {}

}

再创建2个启动/关闭nginx + php cgi的批处理…

启动nginx_start.bat:

@echo off
echo Starting PHP FastCGI…
RunHiddenConsole.exe D:\xampplite\php\php-cgi.exe -b 127.0.0.1:9000 -c D:\xampplite\php\php.ini

echo Starting nginx…
cd D:\xampplite\nginx
start nginx

关闭nginx_stop.bat:

@echo off
echo Stopping nginx…
taskkill /F /IM nginx.exe > nul
echo Stopping PHP FastCGI…
taskkill /F /IM php-cgi.exe > nul
exit

RunHiddenConsole.exe是把该进程后台运行的小工具。

以后启动的时候执行nginx_start.bat和mysql_start.bat,关闭执行nginx_stop.bat和mysql_stop.bat。

 

下一页 »
RSS 订阅

近期文章

近期评论