User Tools

Site Tools


технология_jail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
технология_jail [2015/05/13 11:34]
val
технология_jail [2015/08/26 09:31]
val [С использованием дистрибутива]
Line 11: Line 11:
 # mount_cd9660 /dev/cd0 /mnt # mount_cd9660 /dev/cd0 /mnt
  
-# setenv D /var/jail/www2+# setenv D /var/jail/www
  
 # mkdir -p $D # mkdir -p $D
Line 53: Line 53:
  
   * [[http://​therub.org/​2014/​08/​11/​convert-freebsd-jails-from-rc.conf-to-jail.conf/​|Convert FreeBSD 10 Jails from rc.conf to jail.conf]]   * [[http://​therub.org/​2014/​08/​11/​convert-freebsd-jails-from-rc.conf-to-jail.conf/​|Convert FreeBSD 10 Jails from rc.conf to jail.conf]]
 +
 <​code>​ <​code>​
 [server:~] # cat /​etc/​rc.conf [server:~] # cat /​etc/​rc.conf
Line 66: Line 67:
 exec.system_user = "​root";​ exec.system_user = "​root";​
 exec.jail_user = "​root";​ exec.jail_user = "​root";​
-exec.start ​+= "/​bin/​sh /​etc/​rc";​+exec.start = "/​bin/​sh /​etc/​rc";​
 exec.stop = "/​bin/​sh /​etc/​rc.shutdown";​ exec.stop = "/​bin/​sh /​etc/​rc.shutdown";​
-exec.consolelog = "/​var/​log/​jail_www_console.log";​ 
 mount.devfs;​ mount.devfs;​
 allow.set_hostname = 0; allow.set_hostname = 0;
Line 78: Line 78:
         interface = "​em0";​         interface = "​em0";​
         ip4.addr = "​192.168.X.20";​         ip4.addr = "​192.168.X.20";​
 +        exec.consolelog = "/​var/​log/​jail_www_console.log";​
 } }
 </​code><​code>​ </​code><​code>​
технология_jail.txt · Last modified: 2016/04/22 14:02 by val