Re: Urgent!. Problem with / etc / rc.conf

看板FB_questions作者時間14年前 (2011/11/07 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/9 (看更多)
=0A=0A=0A=0A________________________________=0A=0AFrom: Zantgo <zantgo@gmai= l.com>=0ATo: Robert Simmons <rsimmons0@gmail.com>=0ACc: "freebsd-questions@= FreeBSD.org" <freebsd-questions@freebsd.org>=0ASent: Sunday, November 6, 20= 11 12:52 AM=0ASubject: Re: Urgent!. Problem with / etc / rc.conf=0A=0A=0A= =0A=0AEl 06-11-2011, a las 1:29, Robert Simmons <rsimmons0@gmail.com> escri= bi=F3:=0A=0A> On Sun, Nov 6, 2011 at 12:10 AM, Zantgo <zantgo@gmail.com> wr= ote:=0A>> Without wanting to erase all contents of / etc / rc.conf, by runn= ing "echo" slim_enable =3D "YES" "> / etc / rc.conf". Please help!.=0A> =0A= > Well, the absolute basics would be:=0A> hostname=3D"<YourHostNameHere>"= =0A> ifconfig_<NameOfNicCardDeviceHere>"=3D"inet <IPADDRESS> netmask <NETMA= SK>"=0A> defaultrouter=3D"<IPOfGateway/Router>"=0A> =0A> You may also have = had:=0A> sshd_enable=3D"YES"=0A> =0A> You can also look at dmesg -a and get= a grasp over what other services=0A> you had started.=0A> =0A> Two other t= hings, use >> rather than > to append to the file (better=0A> yet, learn vi= , it's much safer), and always backup any changes from=0A> default you make= to config files.=A0 I keep them all on pastebin.com for=0A> convenience, b= ut you can keep them anywhere, even scribbled on a=0A> postit note stuck to= the front of the server in question (what I used=0A> to do).=0A> =0A> Rob= =0AI gave up, and now reinstall everything again :(=0A_____________________= __________________________=0Afreebsd-questions@freebsd.org mailing list=0Ah= ttp://lists.freebsd.org/mailman/listinfo/freebsd-questions=0ATo unsubscribe= , send any mail to "freebsd-questions-unsubscribe@freebsd.org"=0A=0A=0AWow,= to reinstall everything is like throwing the baby out with the bath water.= Rather drastic. There are some simple steps you could have taken to get th= ings back to normal but without knowing what you had in your original rc.co= nf file that's probably oversimplifying things. =0A=0AI keep a little scrip= t in my /root/bin folder to backup my config files periodically to another = server. This is something you should look into. We all make mistakes and wh= en we do, a backup copy can make the difference between "oh wow" and "oh f*= **".=0A _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1Ejijc5c (FB_questions)
討論串 (同標題文章)
文章代碼(AID): #1Ejijc5c (FB_questions)