
나는 팔로우했다이 튜토리얼FreeBSD 10.1을 설치하려면 "다음 줄을 추가하세요"라는 단계에서 /etc/rc.conf
다음 줄을 추가해야 합니다.
hald_enable="YES"
dbus_enable="YES"
performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"
하지만 저는 Unix를 처음 접했고 에 이러한 줄을 추가하는 방법을 모릅니다 /etc/rc.conf
. 시도했지만 cd
이라고 표시됩니다 Too much arguments
. 에 이러한 줄을 어떻게 추가할 수 있나요 /etc/rc.conf
?
편집: 아직 데스크톱 환경을 설치하지 않았습니다.
답변1
sysrc
FreeBSD에는 이미 설치되어 있는 전용 유틸리티가 있습니다 . 예를 들어:
sysrc hald_enable=YES
다음은 한 줄의 내용입니다.
sysrc hald_enable=YES dbus_enable=YES performance_cx_lowest="Cmax" economy_cx_lowest="Cmax"
보다man 8 sysrc
상세 사항은.
또는 서비스의 경우 다음을 사용할 수 있습니다.service(8)
FreeBSD 13.0 이상에서 서비스를 활성화하려면:
service sshd enable
보다rc.subr(8)enable
시스템의 서비스에서 해당 명령을 지원하는지 확인하려면 시스템에서
답변2
너필요일종의 텍스트 편집기를 배우려면. nano, ed, vi, emacs 등 FreeBSD에서 사용할 수 있는 여러 가지가 있습니다. 나는 불꽃 전쟁을 시작하고 싶지 않으므로 스스로 배우도록 권장합니다.
요청한 내용을 수행하는 정말 빠르고 더러운 방법을 얻으려면 다음을 시도하십시오.
cat >> /etc/rc.conf << "EOF"
dbus_enable="YES"
performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"
EOF
답변3
간단한 방법은..
echo "hald_enable="YES"
dbus_enable="YES"
performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"" >> /etc/rc.conf