1.ngin.conf 公用配置文件:
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;# Load dynamic modules. See /usr/share/nginx/README.dynamic.
events {
worker_connections 1024;
}http {
log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for”‘;access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;include /etc/nginx/mime.types;
default_type application/octet-stream;# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/配置文件目录地址/*.conf;}
2.Nginx 常用指令:
nginx 启动 nginx -t 检查配置文件 nginx -s reload 重启服务
3.Nginx 子站设置(SSH):
server {
listen 443;
server_name canmeng.net;
ssl on;
ssl_certificate /SSH/1_canmeng.net_bundle.crt;
ssl_certificate_key /SSH/2_canmeng.net.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;#access_log logs/host.access.log main;
location / {
root /WEB/B; #路径
#wp规则
try_files $uri $uri/ /index.php?$args;#指引index
index default.php index.php index.html index.htm;
#站点的rewrite在这里写
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
}
#错误页的配置
error_page 404 /error.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /WEB/B$fastcgi_script_name; # File not found.PHP模块引导设置这里
include fastcgi_params;
}}
4.Nginx子站设置:
server {
listen 80;
server_name canmeng.net;
#access_log logs/host.access.log main;
location / {
root /路径/BTZ;
index default.php index.php index.html index.htm;
#站点的rewrite全站跳HTTPS
#rewrite ^(.*) https://$host$1 permanent;
}
#错误页的配置
error_page 404 /error.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /WEB/B$fastcgi_script_name;
include fastcgi_params;
}}
5.Nginx+PHP+mysql安装
yum install nginx -y
chkconfig nginx on #开机启动
yum install mysql-server -y
service mysqld restart #启动mysql
/usr/bin/mysqladmin -u root password ‘MyPas$can4Wmeng_Press’ #密码
chkconfig mysqld on #开机启动
yum install php-fpm php-mysql -y
service php-fpm start #启动 PHP-FPM 进程
netstat -nlpt | grep php-fpm #测试监听端口
chkconfig php-fpm on #开机启动
http://www.uggs-officialsite.org/ Ugg Boots
http://www.yeezy-shoe.us.com/ Yeezy Shoes
http://www.yeezyboost350.us.com/ Yeezy Boost 350 V2
http://www.yeezy.com.co/ Yeezys
http://www.mlbjerseysofficial.us.com/ MLB Jerseys
http://www.pandora-charms.org/ Pandora Charms
Moderate side impacts are possible and feature discomfort in the belly, frustration, muscle pain, looseness of the bowels, flushing, indigestion, heartburn or coughing. tadalafil in india online (Cialis) is a prescribed medication particularly made for men struggling with impotence and unable to have sex consequently.
tadalafil tablets 20 mg
buy amoxicillin online uk paypal
You will certainly should understand light negative side effects like frustration, flushing, muscular tissue aches, indigestion, dripping nose, pain in the back and stale nose, which are not anticipated to get even worse and must not be mentioned, as well as more major adverse effects that do have actually to be reported, such as distressing penis erection, general ill sensation, breast pain, modifications in vision, pain dispersing to the arm or shoulder, abrupt hearing reduction, shortness of breath, lightheadedness, irregular heart beat, vision problems, seizure, fainting, sweating, swelling in the feet or hands and massive sensation. Long-term eyesight loss is a significant yet extremely rare negative side effects of taking generic tadalafil online 20mg buy. It’s also crucial that you tell the medical professional if you are taking any one of the complying with medications that have actually been mentioned to obstruct the impacts of Tadalafil: antidepressants, antibiotics, rifampin, isoniazid, HIV/AIDS medication, imatinib, doxazosin, antifungals, heart or blood tension medications, seizure medications, diclofenac, and conivaptan. In really unusual cases these light adverse effects change in magnitude and start to bother you. This illness impacts millions of mens on the planet every year and can be created by a combo of different aspects. Online pharmacies supply all lot greater than Tadalafil regarding no rx required; they additionally offer you best prices on higher quality generic Tadalafil. Any medicines you are using are supposed to be stated to your doctor before beginning the treatment, especially conivaptan, antifungal medications, heart or blood pressure medications, doxazosin, antidepressants, clarithromycin, seizure medications, isoniazid, imatinib, rifampin, erythromycin, HIV/AIDS medications, diclofenac, and other ones.
prednisone 20mg no prescription
You have to state any type of wellness conditions that are likely to interact with Tadalafil and any sort of medicines you are currently taking. Please avoid taking tadalafil pills 20mg if you ever had an allergic reaction to the active ingredient of this medicine – Cialis.
Make certain you take it at the very same time to stay clear of neglecting to take your medicine. Alcohol could worsen a few of the side impacts while grapefruit juice is known to improve the amount of this medication in your blood. Before Tadalafil treatment could be started, it’s essential for the client to speak to a healthcare professional and discuss any elements that could affect the treatment somehow. Very same top quality for much less cash – this certainly appears like an ideal means out for guys whose lives were impacted by erectile dysfunction. tadalafil generic price (Cialis) is a prescribed anti-impotence medicine often prescribed for guys dealing with repeated failure to obtain a secure erection and complete intercourse. Tadalafil ought to be stored in a dark and amazing spot where individuals to who it was not prescribed will certainly not have the ability to access it.
测试