You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the script installs OpenResty into a custom directory in your home folder. Since the installation path is determined by the script's prefix, the most reliable way to find your configuration file is to check the `openresty` wrapper script:
30
+
By default, the script installs OpenResty to a specific path in your home directory. The configuration file is located at:
**Note:** The build script automatically configures the server to listen on port **8080**, allowing you to start it immediately without manual configuration changes.
47
+
**Note:** The build script automatically configures the server to listen on port **8080**, so you can start it immediately without manual configuration changes.
46
48
47
49
## Usage
48
50
49
-
The script creates wrapper binaries in `~/bin/`. Ensure this directory is in your `PATH`:
51
+
The script creates wrapper binaries in `~/bin/`. To use them, ensure this directory is in your `PATH`:
50
52
51
53
```bash
52
54
export PATH="$HOME/bin:$PATH"
@@ -58,18 +60,15 @@ openresty
58
60
```
59
61
60
62
### 2. Verify it's Running
61
-
You can verify the installation by checking the processes and testing the response:
63
+
Verify that the processes are active in the background:
62
64
63
65
```bash
64
-
# Check if processes are active
66
+
# Check active processes
65
67
ps aux | grep openresty
66
-
67
-
# Test the local response
68
-
curl -I localhost:8080
69
68
```
70
69
71
70
### 3. Common Management Commands
72
-
The wrapper supports standard Nginx signals:
71
+
The wrapper supports standard signals for easy management:
73
72
74
73
```bash
75
74
# Test the configuration file
@@ -82,6 +81,7 @@ openresty -s reload
82
81
openresty -s stop
83
82
```
84
83
84
+
85
85
**Note:** All native files are located within your `$HOME` directory (`~/openresty/`), completely independent of the standard Termux prefix or any PRoot environment.
86
86
87
87
Running OpenResty natively turns your Android device into a high-performance web server and Lua gateway without any extra layers. Check out the [repository](https://github.com/joaothallis/termux-openresty) for more details and to contribute!
0 commit comments