时间:2021-07-01 10:21:17 帮助过:85人阅读
mysql: /etc/init.d/mysqld start/stop/restart/
php-fpm: /etc/init.d/php-fpm start/stop/restart/
ftp: /etc/init.d/vsftpd start/stop/restart/...
比如启动 nginx: /etc/init.d/nginx start
七)计划任务:
5 9-11 * * * (/etc/init.d/php-fpm restart >> /alidata/log/phpresrart.log 2>&1)
八)网站配置:
server {
listen 80;
server_name 域名;
#access_log logs/host.access.log main;
root "网站路径";
location / {
index index.html index.htm index.php;
autoindex off;
}
#nginx配置增加过滤svn
location ~ ^(.*)\/\.svn\/
{
deny all;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
阿里云服务器安装php+nginx+mysql环境
标签:aliyun php