暂无个人介绍
server {
server_name_in_redirect off;
listen 80;
server_name blog.abc.com;
charset gbk;
index index.html index.htm index.php;
root /博客站点文件路径;
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~* \.(gif|jpg|jpeg|png|bmp|txt|zip|jar|swf)$ {
valid_referers none blocked *.7qy.com;
if ($invalid_referer) {
rewrite ^/ http://7qy.com/403.gif;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
access_log /dev/null;
error_log /dev/null;
}
}
-------------------------
硬盘IO和并发连接数没直接关系,因为硬盘的IO承受力远大于web server程序的并发数
1个1G内存,普通机械盘的 VM虚拟机,使用nginx 长连接,每10秒可以承受上万的并发数,就个人的小网站来说,并发数有可能连零头都没有,就算用U盘来跑,每天也能承受上万并发
所以啊里云一直不太重视磁盘IO,那是因为LINUX 系统的内存机制问题,都是使用内存交换,最后再写硬盘的,除非是那种频繁读写硬盘的项目
-------------------------
可以移动到其他目录,只要在站点目录下,并且用户权限相同就行
yum install -y sendmail
chkconfig --add sendmail
chkconfig sendmail on
service sendmail start
systemctl restart sendmail.service
systemctl enable sendmail.service
3.最后修改php.ini文件,在php.ini文件里把
;sendmail_path =
改为:
sendmail_path = /usr/sbin/sendmail -t -i
/sbin/iptables -I INPUT -p tcp --dport 25 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
firewall-cmd --permanent --add-port=25/tcp
firewall-cmd --reload
systemctl restart firewalld.service
-------------------------
http://pan.baidu.com/s/1o74cJdo
-------------------------
-------------------------
-------------------------
-------------------------
在WIN系统上还是用IIS吧,任何第3放的WEB SERV在WIN系统上都比不了IIS