本帖最後由 明月 於 2014-6-12 18:26 編輯 * p) y! p- ]0 S5 N8 h* b' f/ Q
( f( f. G; @; J; N# a
最近一直在折騰VPS,煩死了。今天開始專心做網站了,還是沒什麼思路啊不開心。
* j" p% h& {$ [$ l2 c, [+ [, ?6 l$ `6 P% Q4 F( B1 z
求高手帶!!!
5 @0 U+ c J" p' Q3 A- |7 h: a( v, E6 p
( [: }# W& i. h+ K
時代在發展,debian6過段時間應該會被淘汰,軍哥的lnmp裝起來很慢,不喜歡。上次發的那個腳本debian7安裝總是失敗,又找了一個更牛逼的。
! b Z& [. G! F( h- K8 {- W' r可以選擇安裝lnmp或者lamp,小內存VPS當然是lnmp咯: - Apache2 with mpm_event or Nginx
- MySQL or MariaDB
- PHP-FPM + commonly used PHP modules
- Postfix mail server (securely configured to be outgoing only)
- Varnish cache (optional)- }( \3 Y7 S+ ^9 Z1 @3 s
! e5 R: M# W4 h( mhttps://github.com/Mins/TuxLite' @$ ^- y" {; D# N, g6 R" t
: w% a* i& I. I$ d" z i1 s* N
Supports Debian 6 and 7, Ubuntu 12.04, 12.10 and 13.04.
- X6 R U% ~$ O2 d) Tapt-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 配置三個東西
! h) Z8 I0 d4 O& A0 _" ~) s9 l$ Nhostname,FQDN(yourdomain.tld),mysql root 密碼 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
( T6 S4 Z7 ^7 r, _3 {adduser ryan ./domain.sh add ryan yourdomain.com ./wordpress.sh
1 g% T# Z+ @9 s1 W' vnano /etc/sudoers 給ryan加root權限 nano/etc/ssh/sshd_config . f+ H9 _3 X! h7 r& Z
0 M! A* U" Z6 Q! M @' h( @
順便做下廣告,我的博客,裡面有很多關於建站的乾貨喲:http://www.elegantocean.com/. {- F* W4 [; r3 c2 B
6 R$ a; v- _! j" U h% w+ Y- h- f; C! H
% j: h4 U1 U% H
0 ]; ~) u+ v2 m! M: Y: |& U+ Q3 K% t9 @4 S' P( N
2 G. I7 i, E/ V
_ q0 n; _' s4 m: X: D0 }補充內容 (2014-6-12 18:39):
' K" j# D# F+ e% ?" v7 m求加分,不要太小氣了你們!^_^
0 O5 O3 y: f1 c1 [+ j8 \
1 i: P1 K) L. n, g1 X, @9 ~補充內容 (2014-6-12 20:18):
8 ?% G( |- H: X/ t" enano options.conf 除了上面三個,還有加上你VPS的ip |