基于DEBIAN(ubuntu)的高效LNMP建站方案(3)——TuxLite

  • Supports Debian 6 and 7, Ubuntu 12.04, 12.10 and 13.04.

 

apt-get update&&apt-get install nano &&mkdir tuxlite&&cd tuxlite

wget http://tuxlite.com/scripts/tuxlite.tar.gz&&tar xzf tuxlite.tar.gz&&nano options.conf

配置三个东西:hostname,FQDN(yourdomain.tld),mysql root 密码

191.101.1.19

chmod 700 *.sh&&chmod 700 options.conf&&apt-get update && apt-get -y install aptitude

./install.sh

./setup.sh dbgui

安装webmin:

apt-get update &&apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions libapt-pkg-perl&&wget http://prdownloads.sourceforge.net/webadmin/webmin_1.680_all.deb&&dpkg –install webmin_1.680_all.deb

安装virtualmin

wget http://software.virtualmin.com/gpl/scripts/install.sh&&sh ./install.sh

 

adduser ryan

./domain.sh add ryan yourdomain.com

./wordpress.sh

 

nano /etc/sudoers 给ryanroot权限

nano/etc/ssh/sshd_config

找到如下字样,

#PermitRootLogin yes

修改为:

PermitRootLogin no

/etc/init.d/sshd restart

 

找到如下字样,

#PermitRootLogin yes

修改为:

PermitRootLogin no

 

 

 

$ su – root

Password:

su: Authentication failure

Sorry.

这时候输入

$ sudo passwd root

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

这时候就可以进入根目录了。

sudo su

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据