action08 发表于 2015-02-24 10:50

freebsd用什么类linux service管理命令??

本帖最后由 action08 于 2015-02-24 11:24 编辑

cd portpath/nginx
make install clean
小白发现nginx不知道如何通过服务启动,{:yct14:}

yyu0378 发表于 2015-02-24 13:05

一般freebsd是写在rc.local就行了

action08 发表于 2015-02-24 13:18

yyu0378 发表于 2015-02-24 13:05 static/image/common/back.gif
一般freebsd是写在rc.local就行了

什么意思??例如nginx咋写

BSDtoy 发表于 2015-02-24 14:04

本帖最后由 BSDtoy 于 2015-02-24 14:09 编辑

回复 3# action08

真的有好好使用Linux吗?

启动
nginx -c /usr/local/etc/nginx/nginx.conf

开机自动启动加入/etc/rc.conf
nginx_enable="YES"

action08 发表于 2015-02-24 14:22

本帖最后由 action08 于 2015-02-24 14:23 编辑

BSDtoy 发表于 2015-02-24 14:04 static/image/common/back.gif
回复 3# action08

真的有好好使用Linux吗?



汗,没抄前公司手册文档的{:yct62:}

yyu0378 发表于 2015-02-24 14:59

action08 发表于 2015-02-24 13:18 static/image/common/back.gif
什么意思??例如nginx咋写
我写错了,应该是rc.conf

lsstarboy 发表于 2015-02-24 15:59

FreeBSD下也有service命令了,好像从7还是8开始的。

标准的启用法是直接执行/etc/rc.d目录或/usr/local/etc/rc.d目录下的脚本,后面加start参数,如果在rc.conf中没有项目的话,要加onestart或forcestart。
页: [1]
查看完整版本: freebsd用什么类linux service管理命令??