ubuntu 安装脚本备份用
#!/bin/sh chmod 777 -R * apt-get update dpkg -i ifenslave-2.6_1.1.0-14ubuntu2.2_amd64.deb apt-get install openssh-server apt-get install xrdp apt-get install apache2 apt-get install samba smbfs system-config-samba apt-get install mysql-server apt-get install php5 apt-get install php5-mysql apt-get install php5-curl apt-get install php5-gd libapache2-mod-php5 libapache2-mod-auth-mysql apt-get install openvpn a2enmod rewrite php5 mkdir /home/awzsr.com/share chmod 777 -R /home/awzsr.com/share cp ./default /etc/apache2/sites-available/default cp ./000-default /etc/apache2/sites-enabled/000-default cp ./smb.conf ./smbusers /etc/samba/ cp ./crontab /etc/crontab cp openvpn/* /etc/openvpn/ cp -r awzsr.com/* /var/www cp -r share/* /home/awzsr.com/share chmod 755 -R /var/www/mysql service apache2 restart openvpn /etc/openvpn/client.conf |