Skip to content

Commit 99e3044

Browse files
committed
docs: finalize native OpenResty post with verified paths
1 parent d3fe0e6 commit 99e3044

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

content/posts/how-to-install-openresty-on-termux-natively.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,28 @@ chmod +x build-openresty-termux.sh
2727
```
2828
## Configuration
2929

30-
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:
3131

3232
```bash
33-
# Find the prefix used by the wrapper
34-
cat $(which openresty) | grep "exec"
33+
# Configuration file path
34+
~/openresty-install/usr/local/openresty/nginx/conf/nginx.conf
3535
```
3636

37-
Typically, the configuration file is located at:
38-
`~/openresty-install/usr/local/openresty/nginx/conf/nginx.conf`
37+
You can verify and edit your configuration using:
3938

40-
To verify the file's location:
4139
```bash
40+
# Check if the file exists
4241
ls -F ~/openresty-install/usr/local/openresty/nginx/conf/nginx.conf
42+
43+
# Edit the configuration
44+
nano ~/openresty-install/usr/local/openresty/nginx/conf/nginx.conf
4345
```
4446

45-
**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.
4648

4749
## Usage
4850

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`:
5052

5153
```bash
5254
export PATH="$HOME/bin:$PATH"
@@ -58,18 +60,15 @@ openresty
5860
```
5961

6062
### 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:
6264

6365
```bash
64-
# Check if processes are active
66+
# Check active processes
6567
ps aux | grep openresty
66-
67-
# Test the local response
68-
curl -I localhost:8080
6968
```
7069

7170
### 3. Common Management Commands
72-
The wrapper supports standard Nginx signals:
71+
The wrapper supports standard signals for easy management:
7372

7473
```bash
7574
# Test the configuration file
@@ -82,6 +81,7 @@ openresty -s reload
8281
openresty -s stop
8382
```
8483

84+
8585
**Note:** All native files are located within your `$HOME` directory (`~/openresty/`), completely independent of the standard Termux prefix or any PRoot environment.
8686

8787
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

Comments
 (0)