Stoping nginx... nginx: [alert] kill(14520, 15) failed (3: No such process)
出现情况:重启linux系统后,运行 "/usr/local/nginx/sbin/nginx -s reload" 报这个错误
错误意思:nginx启动的时候杀死进程34719失败,原因是没有这个进程。
解决办法:
[root @localhost ~]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root @localhost ~]# /usr/local/nginx/sbin/nginx -s reload
指定一下nginx 的配置文件 然后重启就好了。

nginx.conf
[code lang="js"]
user www www;

worker_processes auto;

error_log /home/wwwlogs/nginx_error.log crit;

pid /usr/local/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;

events
{
use epoll;
worker_connections 51200;
multi_accept on;
}

http
{
include mime.types;
default_type application/octet-stream;

server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;

sendfile on;
tcp_nopush on;

keepalive_timeout 60;

tcp_nodelay on;

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;

gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";

#limit_conn_zone $binary_remote_addr zone=perip:10m;
##If enable limit_conn_zone,add "limit_conn perip 10;" to server section.

server_tokens off;
access_log off;

server
{
listen 80 default_server;
server_name _;
return 500;
access_log /home/wwwlogs/access.log;
}
include vhost/*.conf;
}

[/code]
原版配置文件
[code lang="js"]
server
{
listen 80;
#listen [::]:80;
server_name www.wzhpp.com wzhpp.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/wzhpp;

include wordpress.conf;
#error_page 404 /404.html;

# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

include enable-php.conf;

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

location ~ /.well-known {
allow all;
}

location ~ /\.
{
deny all;
}

access_log /home/wwwlogs/wzhpp.log;
}

server
{
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name www.wzhpp.com wzhpp.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/wzhpp;
ssl on;
ssl_certificate /home/ssl/wzhpp/ssl.crt;
ssl_certificate_key /home/ssl/wzhpp/ssl.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out /usr/local/nginx/ssl/dhparam.pem 2048
ssl_dhparam /usr/local/nginx/ssl/dhparam.pem;

include wordpress.conf;
#error_page 404 /404.html;

# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

include enable-php.conf;

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

location ~ /.well-known {
allow all;
}

location ~ /\.
{
deny all;
}

access_log /home/wwwlogs/wzhpp.log;
}

[/code]
修改SSL
[code lang="js"]
server
{
listen 80;
#listen [::]:80;
server_name www.wzhpp.com wzhpp.com;
return 301 https://www.wzhpp.com$request_uri;
access_log /home/wwwlogs/wzhpp.log;
}

server
{
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name www.wzhpp.com wzhpp.com;

if ($host = 'wzhpp.com'){
return 301 https://www.wzhpp.com$request_uri;
}

index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/wzhpp;
ssl on;
ssl_certificate /home/ssl/wzhpp/ssl.crt;
ssl_certificate_key /home/ssl/wzhpp/ssl.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out /usr/local/nginx/ssl/dhparam.pem 2048
ssl_dhparam /usr/local/nginx/ssl/dhparam.pem;

include wordpress.conf;
#error_page 404 /404.html;

# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

include enable-php.conf;

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}

location ~ .*\.(js|css)?$
{
expires 12h;
}

location ~ /.well-known {
allow all;
}

location ~ /\.
{
deny all;
}

access_log /home/wwwlogs/wzhpp.log;
}
[/code]

[code lang="js"]
#!/bin/bash

######~保存备份文件最长时间(天)~######
Backup_Day='7'

######~备份文件保存位置~######
Backup_Home="/home/backup"

######~需要备份的网站目录~######
Backup_Web=("/home/wwwroot/www.wzhpp.com")

######~需要备份的数据库~######
Backup_Database=("wzhpp")

######~MySQL设置~######
MYSQL_UserName='root'
MYSQL_PassWord='******'

######~备份文件名~######
Web='web'
Sql='sql'

######~备份模式~######
Enable_OSS='0'
# 0: 开启; 1: 关闭

######~OSS设置~######
OSS_Bucket='wzh'
OSS_Dir='backup'
OSS_Host='oss-cn-hangzhou.aliyuncs.com'
#OSS_Host='oss-cn-hangzhou-internal.aliyuncs.com'
OSS_Id='******'
OSS_Key='******'

if [ ! -f ~/.ossutilconfig ]; then
echo "OSS配置文件不存在,自动创建..."
./ossutil config -e ${OSS_Host} -I ${OSS_Id} -K ${OSS_Key}
fi

if [ ! -d ${Backup_Home} ]; then
mkdir -p ${Backup_Home}
fi

######~Backup~######
Backup_Dir=$(pwd)
cd ${Backup_Home}
Backup_Web()
{
Backup_Path=$1
Dir_Name=`echo ${Backup_Path##*/}`
Pre_Dir=`echo ${Backup_Path}|sed 's/'${Dir_Name}'//g'`
tar zcf ${Web}-${Dir_Name}-$(date +"%Y%m%d").tar.gz -C ${Pre_Dir} ${Dir_Name}
tar rvf ${Web}-$(date +%Y%m%d).tar.gz ${Web}-${Dir_Name}-$(date +"%Y%m%d").tar.gz --remove-files
}
Backup_Sql()
{
innobackupex --user=$MYSQL_UserName --password=$MYSQL_PassWord --databases=$1 --stream=tar . 1>${Sql}-$1-$(date +"%Y%m%d").tar.gz
tar rvf ${Sql}-$(date +"%Y%m%d").tar.gz ${Sql}-$1-$(date +"%Y%m%d").tar.gz --remove-files
}

echo "正在删除本地过期文件..."
for ((i=${Backup_Day};i<${Backup_Day}+3;i++)); do
OldWeb=${Web}-$(date -d -"${i}"day +"%Y%m%d").tar.gz
OldSql=${Sql}-$(date -d -"${i}"day +"%Y%m%d").tar.gz
rm -rf ${OldWeb}
rm -rf ${OldSql}
done

echo "正在备份网站..."
rm -rf ${Web}-$(date +%Y%m%d).tar.gz
for web in ${Backup_Web[@]};do
Backup_Web ${web}
done

echo "正在备份数据库..."
rm -rf ${Sql}-$(date +%Y%m%d).tar.gz
for db in ${Backup_Database[@]};do
Backup_Sql ${db}
done

######~OSS~######
if [ ${Enable_OSS} = 0 ]; then
echo "正在删除OSS过期文件..."
for ((i=${Backup_Day};i<${Backup_Day}+3;i++)); do
OldWeb=${Web}-$(date -d -"${i}"day +"%Y%m%d").tar.gz
OldSql=${Sql}-$(date -d -"${i}"day +"%Y%m%d").tar.gz
$Backup_Dir/ossutil rm oss://${OSS_Bucket}/${OSS_Dir}/${OldWeb}
$Backup_Dir/ossutil rm oss://${OSS_Bucket}/${OSS_Dir}/${OldSql}
done
echo "正在上传文件到OSS..."
$Backup_Dir/ossutil rm oss://${OSS_Bucket}/${OSS_Dir}/${Web}-$(date +"%Y%m%d").tar.gz
$Backup_Dir/ossutil rm oss://${OSS_Bucket}/${OSS_Dir}/${Sql}-$(date +"%Y%m%d").tar.gz
$Backup_Dir/ossutil cp ${Web}-$(date +"%Y%m%d").tar.gz oss://${OSS_Bucket}/${OSS_Dir}/${Web}-$(date +"%Y%m%d").tar.gz
$Backup_Dir/ossutil cp ${Sql}-$(date +"%Y%m%d").tar.gz oss://${OSS_Bucket}/${OSS_Dir}/${Sql}-$(date +"%Y%m%d").tar.gz
echo "备份文件到OSS完成..."
fi
######~OSS~######

[/code]

ossutil 下载地址 https://help.aliyun.com/document_detail/35477.html
XtraBackup 下载地址 https://www.percona.com/downloads/XtraBackup/LATEST/
CentOS安装需要先安装依赖包yum install perl-DBD-MySQL libev

[code lang="js"]
1、打开C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml。(最好先获取这个文件管理员权限)

2、搜索并删掉如下内容

<imaging exclude=""><assemblyIdentity name="Microsoft-Windows-Shell-Setup" version="6.3.9600.17415" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" versionScope="NonSxS"></assemblyIdentity><sysprepOrder order="0x0900"></sysprepOrder><sysprepModule methodName="Sysprep_Cleanup_Shell" moduleName="$(runtime.system32)\shsetup.dll"></sysprepModule></imaging>
[/code]