All Projects → fenbox → Vagrantfile

fenbox / Vagrantfile

Licence: other
Vagrant 配置示例

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Vagrantfile

Oneinstack
OneinStack - A PHP/JAVA Deployment Tool
Stars: ✭ 1,983 (+3866%)
Mutual labels:  lnmp, lemp
vagrant-r10k
UNSUPPORTED - SEEKING MAINTAINER - Vagrant middleware plugin to retrieve puppet modules using r10k.
Stars: ✭ 36 (-28%)
Mutual labels:  vagrant, vagrantfile
Lnmp
LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RHEL/Fedora/Aliyun/Amazon、Debian/Ubuntu/Raspbian/Deepin/Mint Linux VPS或独立主机安装LNMP(Nginx/MySQL/PHP)、LNMPA(Nginx/MySQL/PHP/Apache)、LAMP(Apache/MySQL/PHP)生产环境的Shell程序。
Stars: ✭ 2,119 (+4138%)
Mutual labels:  lnmp, lemp
Lnmp
💻 🐳 🐘 🐬 🐧 🚀 Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.
Stars: ✭ 341 (+582%)
Mutual labels:  lnmp, lemp
build-inspector
Inspect your builds to look for changes in filesystem, network traffic and running processes.
Stars: ✭ 12 (-76%)
Mutual labels:  vagrant, vagrantfile
Docker Lemp
🐳 Docker 快速搭建 LEMP 开发环境
Stars: ✭ 87 (+74%)
Mutual labels:  lnmp, lemp
sig-windows-dev-tools
This is a batteries included local development environment for Kubernetes on Windows.
Stars: ✭ 52 (+4%)
Mutual labels:  vagrant, vagrantfile
Centminmod
CentOS Shell menu based Nginx LEMP web stack auto installer (GPLv3 licensed)
Stars: ✭ 519 (+938%)
Mutual labels:  lnmp, lemp
Detectionlab
Automate the creation of a lab environment complete with security tooling and logging best practices
Stars: ✭ 3,237 (+6374%)
Mutual labels:  vagrant, vagrantfile
Kubernetes Vagrant Centos Cluster
Setting up a distributed Kubernetes cluster along with Istio service mesh locally with Vagrant and VirtualBox, only PoC or Demo use.
Stars: ✭ 1,750 (+3400%)
Mutual labels:  vagrant, vagrantfile
Slickstack
SlickStack is a free LEMP stack automation script written in Bash designed to enhance and simplify WordPress provisioning, performance, and security.
Stars: ✭ 311 (+522%)
Mutual labels:  lnmp, lemp
kubernetes-cluster
Vagrant As Automation Script
Stars: ✭ 34 (-32%)
Mutual labels:  vagrant, vagrantfile
Lnmp
LEMP stack/LAMP stack/LNMP stack installation scripts for CentOS/Redhat Debian and Ubuntu
Stars: ✭ 2,488 (+4876%)
Mutual labels:  lnmp, lemp
vagrant-ids
An Ubuntu 16.04 build containing Suricata, PulledPork, Bro, and Splunk
Stars: ✭ 21 (-58%)
Mutual labels:  vagrant, vagrantfile
LEMPer
LEMPer Stack is terminal-based LEMP / LNMP installer and manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
Stars: ✭ 171 (+242%)
Mutual labels:  lnmp, lemp
kubeadm-vagrant
Setup Kubernetes Cluster with Kubeadm and Vagrant
Stars: ✭ 49 (-2%)
Mutual labels:  vagrant, vagrantfile
docker lnmp
一键部署基于docker的LAMP环境,并利用electron + vue 提供gui管理。+++ 可配置的多进程php扩展安装
Stars: ✭ 37 (-26%)
Mutual labels:  lnmp
misp-vagrant
Deploy MISP Project software with Vagrant.
Stars: ✭ 37 (-26%)
Mutual labels:  vagrant
terraform-provider-vagrant
A Vagrant provider for terraform.
Stars: ✭ 43 (-14%)
Mutual labels:  vagrant
nomad-demo
Vagrant based demo setup for running Hashicorp Nomad
Stars: ✭ 88 (+76%)
Mutual labels:  vagrant

Vagrantfile

这是一个基于 Ubuntu 18.04 LTS 的 Vagrant LEMP/LNMP 开发环境,可以运行 Typecho、WordPress 等程序。环境配置根据 Linode 官方教程搭建。

本配置在 Vagrant 2.2.*,虚拟机为 VirtualBox 6.0.* 下测试通过。安装步骤:

  1. 安装 VirtualBox 虚拟机及 Vagrant 程序
  2. 添加 box 镜像 vagrant box add ubuntu/bionic64,选择 virtualbox
  3. 执行建立环境 vagrant up

文件说明:

  • Vagrantfile:Vagrant 的配置文件
  • bootstrap.sh:镜像初始化时自动运行的脚本
  • sources.list:源镜像服务器
  • nginx/*:Typecho、WordPress 的 nginx 的参考配置文件

常见问题

链接数据库报错 Access denied

Access denied for user 'root'@'localhost' (using password: YES)

$ sudo mysql -u root -p

在数据库里执行:

UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND plugin = 'unix_socket';
FLUSH PRIVILEGES;
\q

重启 MariaDB 服务:

$ sudo service mysql restart

方法来源 https://stackoverflow.com/a/35748657/620935

修改静态文件无法实时刷新

这是 VirtualBox 的一个 BUG,需要修改 nginx.conf 文件:

$ sudo vi /etc/nginx/nginx.conf

把里面的 sendfile off; 改为 sendfile on;

方法来源 https://www.vagrantup.com/docs/synced-folders/virtualbox.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].