❓ Help About vps

Status
Not open for further replies.
thanks lods try ko


paano siya ibahin?
pagkatapos mo malaman program name (e.g squid)... madalas nasa /etc folder yan (/etc/squid)

kung di ka sure sa directory, pwede ka gumamit ng grep -r sa /etc

grep -r '81' /etc

after mo makita yung file/config path na may exact value ng hinahanap mo, gamitan mo ng text editor (nano or vim) para maedit yung file/config
 
hanapin mo muna kung anong program yung gumagamit ng port 81
Code:
netstat -ltnp | grep ':81'
eto sya paps oh di ko ma edit
IMG_20220120_164250.webp
 
kung nginx, may dalawang directory yan for config, kung wala sa/etc/nginx/nginx.conf, nasa loob ng /etc/nginx/conf.d/filename.conf


by the way, hindi na kasama yung number, process id lang yan.
permission denied daw lods

kung nginx, may dalawang directory yan for config, kung wala sa/etc/nginx/nginx.conf, nasa loob ng /etc/nginx/conf.d/filename.conf


by the way, hindi na kasama yung number, process id lang yan.
tama na ata to /etc/nginx/nginx.conf
 
direct sa documentation ng pinag rentahan mong VPS for ex DO . may mga premade script yan sila and determine mo din if anong server nginx or apache etc
 
Bon-chan pa help bro

direct sa documentation ng pinag rentahan mong VPS for ex DO . may mga premade script yan sila and determine mo din if anong server nginx or apache etc
di ko talaga makita tol ahaha hintayin ko nalang si bonchan eto batak sa mga ganto eh
 
permission denied daw lods


tama na ata to /etc/nginx/nginx.conf
nahanap mo na?
pwede mo iangat ng folder yung grep -r na sinabi ko kahapon.

grep -r '81' /etc/nginx
lalabas jan yung filename ng config

ano gamit mong script? wala ba syang change port sa menu?
 
nahanap mo na?
pwede mo iangat ng folder yung grep -r na sinabi ko kahapon.

grep -r '81' /etc/nginx
lalabas jan yung filename ng config

ano gamit mong script? wala ba syang change port sa menu?
eto gamit kobg script paps wala syang port menu eh sayang ganda pa naman gamitin
https://phcorner.org/threads/ssh-ssl-ovpn-websocket-autoscript.1165333/

nahanap mo na?
pwede mo iangat ng folder yung grep -r na sinabi ko kahapon.

grep -r '81' /etc/nginx
lalabas jan yung filename ng config

ano gamit mong script? wala ba syang change port sa menu?
permission denied paps bat kaya ganto
 
hanggat' maari i-leverage mo ang mas modern na 'ss'. so kung gusto mo makita open port 81, eto ang mas modern na approach:

Code:
ss -4tlnp -o state listening '( sport = :81 )'

ngayun na alam mo na ang nginx yun. so yung config nun can be in many places. so para makita mo yung config file na may listening port 81. so to change to port 80, as root issue the following,
Code:
a=$(find /etc/nginx/ -type f -name '*.conf' | xargs grep -l '^\s*listen.\+:81')
sed -i 's/^\(\s*listen.\+:8\)1/\10/' $a

then dont' forget to re-check the config then reload.
Code:
nginx -t
nginx -sreload
 
hanggat' maari i-leverage mo ang mas modern na 'ss'. so kung gusto mo makita open port 81, eto ang mas modern na approach:

Code:
ss -4tlnp -o state listening '( sport = :81 )'

ngayun na alam mo na ang nginx yun. so yung config nun can be in many places. so para makita mo yung config file na may listening port 81. so to change to port 80, as root issue the following,
Code:
a=$(find /etc/nginx/ -type f -name '*.conf' | xargs grep -l '^\s*listen.\+:81')
sed -i 's/^\(\s*listen.\+:8\)1/\10/' $a
permission denied daw paps
 
Status
Not open for further replies.

About this Thread

  • 27
    Replies
  • 1K
    Views
  • 11
    Participants
Last reply from:
Ayase Idaichi

Online now

Members online
707
Guests online
1,572
Total visitors
2,279

Forum statistics

Threads
2,275,498
Posts
28,963,635
Members
1,232,811
Latest member
Cadu1711
Back
Top