时间:2015-05-12 13:42:42 作者:shuqing 来源:系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20150512/48082.html 手机查看 评论 反馈
1.3 Apache
apt-get install apache2
vi /etc/apache2/sites-available/default
ServerName ubuntu
DocumentRoot /var/www/ubuntu
Options ExecCGI FollowSymLinks
AllowOverride all
allow from all
Order allow,deny
ErrorLog/var/log/apache2/error-ubuntu.log
sudo ln -s /etc/apache2/sites-available/default/etc/apache2/sites-enabled/ubuntu
/etc/init.d/apache2restart
1.4KickStart
vi /var/www/Ubuntu/ks.cfg#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone Asia/Chongqing
#Root password
rootpw --disabled
#Initial user gaojinbo/gaojinbo.com
user hua --fullname hua --passwordpassword
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --urlhttps://192.168.100.171/ubuntu
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part / --fstype ext4 --size 10000
part swap --size 5000
auth --useshadow --enablemd5
network --bootproto=dhcp --device=eth0
#network --bootproto=static--ip=192.168.5.168 --netmask=255.255.255.0 --gateway=192.168.100.1--nameserver=221.5.88.88 --device=eth0
firewall --disabled
skipx
%packages
@openssh-server
发表评论
共0条
评论就这些咯,让大家也知道你的独特见解
立即评论以上留言仅代表用户个人观点,不代表系统之家立场