Freebsd服务器初始化

来自linux中国网wiki
Evan讨论 | 贡献2020年11月30日 (一) 06:16的版本 →‎see also
跳到导航 跳到搜索

ins nginx

Install nginx using pkg command: pkg install nginx
Turn on Nginx service on FreeBSD: sysrc nginx_enable=YES
Configure Nginx server by editing /usr/local/etc/nginx/nginx.conf file



include  /usr/local/etc/nginx/conf.d/*.conf;

还是 ports 爽 有自定义什么的呢 

FreeBSD设置IP地址、网关、DNS的方法

 cat /etc/rc.conf
hostname="newNAT2021"
#ifconfig_vmx0="DHCP"
ifconfig_vmx0="inet 192.168.10.239  netmask 255.255.254.0" 
defaultrouter="192.168.10.1"  

sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
nginx_enable="YES"

jial

qjail

see also

FreeBSD Install Nginx Webserver Tutorial

How to Install Nginx, MariaDB and PHP (FEMP) Stack on FreeBSD

How To Enable SSH On FreeBSD

https://www.freebsd.org/doc/handbook/configtuning-rcd.html