Update os/FreeBSD/Bastille/Bastille.md
This commit is contained in:
parent
4b1e873446
commit
e0bc159395
1 changed files with 1 additions and 44 deletions
|
|
@ -168,46 +168,3 @@ Now destroy it:
|
||||||
bastille stop alcatraz
|
bastille stop alcatraz
|
||||||
bastille destroy force alcatraz
|
bastille destroy force alcatraz
|
||||||
```
|
```
|
||||||
|
|
||||||
# Using ports
|
|
||||||
|
|
||||||
```sh
|
|
||||||
bastille create alcatraz 14.2-RELEASE 192.168.1.201 em0
|
|
||||||
bastille pkg alcatraz bootstrap
|
|
||||||
bastille pkg alcatraz update
|
|
||||||
bastille pkg alcatraz install -y git
|
|
||||||
bastille cmd alcatraz git clone --depth 1 https://git.FreeBSD.org/ports.git /usr/ports
|
|
||||||
```
|
|
||||||
|
|
||||||
and then go in the console:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
bastille console alcatraz
|
|
||||||
```
|
|
||||||
|
|
||||||
within the console...
|
|
||||||
|
|
||||||
```sh
|
|
||||||
export BATCH=yes
|
|
||||||
cd /usr/ports/www/apache24/ && make install clean
|
|
||||||
exit
|
|
||||||
```
|
|
||||||
|
|
||||||
enable and start it ...
|
|
||||||
|
|
||||||
```sh
|
|
||||||
bastille sysrc alcatraz apache24_enable=YES
|
|
||||||
bastille service alcatraz apache24 start
|
|
||||||
```
|
|
||||||
|
|
||||||
Test it:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
curl http://192.168.1.201/
|
|
||||||
```
|
|
||||||
|
|
||||||
Destroy it:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
bastille destroy force alcatraz
|
|
||||||
```
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue