SalamanderWnmp 开源项目教程

SalamanderWnmp 开源项目教程

SalamanderWnmpA beautiful Nginx PHP Mysql environment for windows( windows下用WPF制作的nginx,php,mysql集成环境(免安装))项目地址:https://gitcode.com/gh_mirrors/sa/SalamanderWnmp

1. 项目的目录结构及介绍

SalamanderWnmp 项目的目录结构如下:

SalamanderWnmp/
├── bin/
│   ├── nginx/
│   ├── php/
│   └── mariadb/
├── conf/
│   ├── nginx/
│   ├── php/
│   └── mariadb/
├── data/
│   └── mariadb/
├── logs/
│   ├── nginx/
│   └── php/
├── tmp/
│   ├── nginx/
│   └── php/
├── README.md
└── start.bat

目录介绍

  • bin/:包含 Nginx、PHP 和 MariaDB 的可执行文件。
  • conf/:包含 Nginx、PHP 和 MariaDB 的配置文件。
  • data/:用于存放 MariaDB 的数据文件。
  • logs/:用于存放 Nginx 和 PHP 的日志文件。
  • tmp/:用于存放 Nginx 和 PHP 的临时文件。
  • README.md:项目的说明文档。
  • start.bat:项目的启动脚本。

2. 项目的启动文件介绍

项目的启动文件是 start.bat,这是一个批处理脚本,用于启动 Nginx、PHP 和 MariaDB 服务。

启动脚本内容

@echo off
echo Starting SalamanderWnmp...
cd bin\nginx
start nginx
cd ..\..\
cd bin\php
php-cgi.exe -b 127.0.0.1:9000
cd ..\..\
cd bin\mariadb
mysqld --defaults-file=..\conf\mariadb\my.cnf --console

启动步骤

  1. 进入 Nginx 的 bin 目录并启动 Nginx 服务。
  2. 进入 PHP 的 bin 目录并启动 PHP-CGI 服务。
  3. 进入 MariaDB 的 bin 目录并启动 MariaDB 服务。

3. 项目的配置文件介绍

项目的配置文件主要存放在 conf/ 目录下,包括 Nginx、PHP 和 MariaDB 的配置文件。

Nginx 配置文件

Nginx 的配置文件位于 conf/nginx/ 目录下,主要文件是 nginx.conf

worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       80;
        server_name  localhost;
        location / {
            root   html;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

PHP 配置文件

PHP 的配置文件位于 conf/php/ 目录下,主要文件是 php.ini

[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
default_mimetype = "text/html"

SalamanderWnmpA beautiful Nginx PHP Mysql environment for windows( windows下用WPF制作的nginx,php,mysql集成环境(免安装))项目地址:https://gitcode.com/gh_mirrors/sa/SalamanderWnmp

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

谢忻含Norma

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值