说明:这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa(Linux、Nginx/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
未经允许不得转载:嘟嘟 » OneinStack:lnmp、lamp、lnmpa一键安装包(支持HHVM)
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?