• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

OneinStack:lnmp、lamp、lnmpa一键安装包(支持HHVM)

主机教程 Liam 1年前 (2019-04-28) 468次浏览 15个评论 扫描二维码
文章目录[隐藏]

说明:这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa(LinuxNginx/Tengine、MySQL/MariaDB/Percona、PHP),适用于CentOS 5~7(包括redhat)、Debian 6~8、Ubuntu 12.04~15.04的32位和64位。

如果要支持HHVM,仅支持CentOS 6(7) 64位。

安装

1、CentOS/Redhat下的安装

yum -y install wget screen wget http://mirrors.linuxeye.com/lnmp-full.tar.gz tar xzf lnmp-full.tar.gz cd lnmp screen -S lnmp ./install.sh 

2、Debian/Ubuntu下的安装

apt-get -y install wget screen curl python wget http://mirrors.linuxeye.com/lnmp-full.tar.gz tar xzf lnmp-full.tar.gz cd lnmp screen -S lnmp ./install.sh 

之后按自己要求安装所需版本。
如果网路出现中断,可以执行命令screen -r lnmp重新连接安装窗口。

使用

1、添加虚拟主机

./vhost.sh 

2、删除虚拟主机

./vhost.sh del 

3、管理ftp账号

./pureftpd_vhost.sh  

4、数据备份

./backup_setup.sh # 备份参数设置 ./backup.sh # 立即执行备份 

crontab -e # 可添加到计划任务,如每天凌晨1点自动备份

0 1 * * * cd ~/lnmp;./backup.sh  > /dev/null 2>&1 & 

5、安装Let’s Encrypt client

./addons.sh 

选择7,安装即可。(Let’s Encrypt client是免费的SSL证书)

6、管理服务
Nginx/Tengine:

service nginx {start|stop|status|restart|reload|configtest} 

MySQL/MariaDB/Percona:

service mysqld {start|stop|restart|reload|status} 

PHP:

service php-fpm {start|stop|restart|reload|status} 

Apache:

service httpd {start|restart|stop} 

HHVM:

service supervisord {start|stop|status|restart|reload} 

Pure-Ftpd:

service pureftpd {start|stop|restart|status} 

Redis:

service redis-server {start|stop|status|restart|reload} 

Memcached:

service memcached {start|stop|status|restart|reload} 

原文地址:https://blog.linuxeye.com/31.html


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:OneinStack:lnmp、lamp、lnmpa一键安装包(支持HHVM)
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(15)个小伙伴在吐槽
  1. Hey there this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be enormously appreciated!
    best web hosting sites2020-09-05 09:28 回复 Mac OS X | Chrome 65.0.3325.181
  2. Simply desire to say your article is as astonishing. The clarity to your publish is just nice and that i could assume you're a professional on this subject. Fine together with your permission let me to grab your RSS feed to stay up to date with drawing close post. Thank you 1,000,000 and please carry on the enjoyable work.
    web hosting providers2020-09-01 02:04 回复 Linux | Firefox浏览器 56.0
  3. What's Happening i'm new to this, I stumbled upon this I have discovered It absolutely helpful and it has aided me out loads. I'm hoping to contribute & aid other customers like its helped me. Good job.
    black mass2020-08-31 06:53 回复 Mac OS X | Chrome 56.0.2986.42
  4. wonderful post, very informative. I wonder why the other experts of this sector don't notice this. You should continue your writing. I am sure, you've a great readers' base already!
    cheap flights2020-08-28 10:11 回复 Mac OS X | Chrome 66.0.3359.181
  5. Good day! Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good success. If you know of any please share. Cheers!
    cheap flights2020-08-27 13:08 回复 Linux | Firefox浏览器 52.9
  6. I am really grateful to the holder of this web site who has shared this enormous article at here. cheap flights yynxznuh
    cheap flights2020-08-27 03:26 回复 Mac OS X | Chrome 66.0.3359.181
  7. Thankfulness to my father who told me about this weblog, this web site is actually awesome.
    cheap flights2020-08-26 20:45 回复 Linux | Chrome 66.0.3359.139
  8. hello!,I really like your writing very so much! proportion we keep in touch extra approximately your article on AOL? I require a specialist in this space to unravel my problem. Maybe that is you! Looking forward to see you.
    best web hosting 20202020-08-26 08:44 回复 Mac OS X | Firefox浏览器 61.0
  9. What i don't realize is actually how you are not really a lot more well-preferred than you may be now. You are so intelligent. You understand thus significantly on the subject of this topic, produced me in my opinion imagine it from numerous varied angles. Its like men and women are not fascinated except it is something to accomplish with Lady gaga! Your personal stuffs excellent. All the time deal with it up! cheap flights 2CSYEon
    cheap flights2020-08-25 11:33 回复 Mac OS X | Chrome 66.0.3359.66
  10. I got this web page from my buddy who shared with me on the topic of this website and at the moment this time I am visiting this web page and reading very informative content here. cheap flights 3gqLYTc
    cheap flights2020-08-25 01:29 回复 Mac OS X | Firefox浏览器 62.0
  11. It's an remarkable piece of writing for all the internet people; they will get advantage from it I am sure.
    cheap flights2020-08-24 08:59 回复 Mac OS X | Chrome 67.0.3396.62
  12. It's going to be finish of mine day, but before finish I am reading this great piece of writing to increase my knowledge.
    cheap flights2020-08-24 08:58 回复 Mac OS X | Firefox浏览器 56.0.4
  13. Right here is the perfect blog for anybody who really wants to understand this topic. You realize so much its almost tough to argue with you (not that I really will need to…HaHa). You certainly put a brand new spin on a subject which has been discussed for many years. Excellent stuff, just wonderful!
    web hosting sites2020-08-14 11:35 回复 Linux | Firefox浏览器 56.0
  14. What's up Dear, are you really visiting this web page on a regular basis, if so then you will without doubt obtain fastidious experience. adreamoftrains web hosting services
    adreamoftrains web host2020-08-12 10:12 回复 Windows XP | 360浏览器 JK
  15. This site was... how do I say it? Relevant!! Finally I've found something that helped me. Thank you!
    website hosting2020-08-10 14:13 回复 Linux | Firefox浏览器 54.0