1.挂载硬盘
手动挂
# sudo mount -t ntfs /dev/sda1 /gia114/
启动挂
# sudo vim /etc/fstab
=======================================
# /dev/sda1 /gia114/ ntfs 0 0
=======================================
2.安装MySQL
# sudo apt-get -y install mysql-server mysql-client
# /etc/init.d/mysql start
# ln -s /mydata/mysql /var/lib/
3.安装apache2
# sudo apt-get -y install apache2
配置文件
# cd /etc/apache2/sites-available/default
4.安装PHP5
# sudo apt-get -y install php5 php5-curl php5-gd
启用 Mod_rewrite 模块:
# sudo a2enmod rewrite
5.安装VIM
# sudo apt-get install vim
6.安装DAMBA
# sudo apt-get -y install samba
# sudo chmod 777 /home/share
# sudo vim /etc/samba/smb.conf
配置
======================================
[share]
path=/var/www
available = yes
browseable = yes
public = yes
writable = yes
guest ok = no
valid users = phpbin
=====================================
新增用户
# useradd phpbin //添加用户名phpbin
# passwd phpbin //给用户名phpbin添加密码
绑定用户
# smbpasswd -a phpbin
7.其他配置
进程锁了
#:sudo rm /var/cache/apt/archives/lock
#:sudo rm /var/lib/dpkg/lock
# 客户端清理
net use * /del /y来清