Nginx
# ee /usr/local/etc/nginx/nginx.conf
IPFW
# ee /etc/rc.conf
AWS - Security Group
Enable ports
Reload:
# service nginx reload
# service ipfw restart
Related article: Install Nginx on freeBSD
Showing posts with label ports freebsd. Show all posts
Showing posts with label ports freebsd. Show all posts
Thursday, December 27, 2018
Port block!! Checkpoint in firewalls
Friday, December 21, 2018
Install Portsnap
Links: Installing Applications: Packages and Ports: Using the Ports Collection.
Install Portsnap:
Get the ports collection and extract it.
# portsnap fetch extract
# portsnap fetch update
# whereis apache24
Example:
Install the Nano editor, go to ports directory;
# whereis apache24
Example:
Install the Nano editor, go to ports directory;
# cd /usr/ports/editors/nano && make install clean
Removing Installed Ports:
# cd /usr/ports/editors/nano
make deinstall
Check the listening ports:
# sockstat -4 -l
Upgrading Ports Using Portmaster:
ports-mgmt/portmaster is a very small utility for upgrading installed ports. It is designed to use the tools installed with the FreeBSD base system without depending on other ports or databases. To install this utility as a port:
# cd /usr/ports/ports-mgmt/portmaster
# make install clean
To list these categories and search for updates:
# portmaster -L
This command is used to upgrade all outdated ports
# portmaster -a
If errors are encountered during the upgrade process, add -f to upgrade and rebuild all ports:
# portmaster -af
Portmaster can also be used to install new ports on the system, upgrading all dependencies before building and installing the new port. To use this function, specify the location of the port in the Ports Collection:
# portmaster shells/bash
Upgrading Ports Using Portupgrade:
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
Subscribe to:
Posts (Atom)