-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathserver.commands.txt
69 lines (40 loc) · 1.56 KB
/
server.commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
>>>>>>>> Servers Commands <<<<<<<<<<<<<<<<
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
NGINX:
ON Windows 10:
nginx -s stop -Rapid shutdown
nginx -s quit -Graceful shutdown
nginx -s reload -Changing configuration, starting new worker processes with a new configuration,
graceful shutdown of old worker processes
nginx -s reopen -Reopening log files
In command prompt
D:\nginx>start nginx //To start server
D:\nginx>nginx -s stop //To stop server
In Another Command prompt
D:\xampp\php>php-cgi.exe -b 127.0.0.1:9000 //Start php
................................................................
Example:
// My Laravel Dir Path: D:/nginx/html/laravel
//Config laravel on nginx for windows 10
server {
listen 80;
server_name localhost;
root html/laravel/public;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
try_files $uri /index.php = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
----------------------------------------------
APACHE: