Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielcristho/setup-server
BASH Script for LEMP installation on your Ubuntu
https://github.com/danielcristho/setup-server
bash-script lemp-stack ubuntu
Last synced: 24 days ago
JSON representation
BASH Script for LEMP installation on your Ubuntu
- Host: GitHub
- URL: https://github.com/danielcristho/setup-server
- Owner: danielcristho
- License: apache-2.0
- Created: 2022-08-31T07:11:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-14T08:26:24.000Z (about 1 year ago)
- Last Synced: 2023-10-16T07:54:56.649Z (about 1 year ago)
- Topics: bash-script, lemp-stack, ubuntu
- Language: Shell
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup Server
BASH Script for LEMP installation and configure on your Ubuntu, including Node, Yarn and etc.
```bash
echo "***************************************************************"
echo "* ___ _ ____ *"
echo "*/ ___| ___| |_ _ _ _ __ / ___| ___ _ ____ _____ _ __ *"
echo "*\___ \ / _ \ __| | | | '_ \ \___ \ / _ \ '__\ \ / / _ \ '__|*"
echo "* ___) | __/ |_| |_| | |_) | ___) | __/ | \ V / __/ | *"
echo "*|____/ \___|\__|\__,_| .__/ |____/ \___|_| \_/ \___|_| *"
echo "* |_| by: @danielcristho*"
echo "***************************************************************"
echo "1. Update machine "
echo "2. Upgrade machine "
echo "3. Install Nginx "
echo "4. Install MariaDB "
echo "5. Install PHP "
echo "6. Install Yarn "
echo "7. Install Node js using NVM "
echo "8. Install PM2 "
echo "9. Install Monitoring tool(Netdata) "
echo "10. Set UFW Rules "
echo "11. Backup LEMP(Current Configuration) "
echo "12. Restart machine "
echo "0. Exit "
```## Requirements
- Ubuntu 18.04 or latest version
- This script utilises root user privileges. If you run it from another user you need to add this user to sudoers group and prepend sudo to all commands in the script if needed.## Usage
To download and run this script use the single line below:
```bash
wget https://raw.githubusercontent.com/danielcristho/setup-server/main/install.sh && sudo bash install.sh
```Or make the script executable
```bash
wget https://raw.githubusercontent.com/danielcristho/setup-server/main/install.sh
sudo chmod +x install.sh
sudo ./install.sh
```## Features
- **Nginx**
- **PHP**
- **MariaDB**
- **Node.js**
- **PM2**
- **NetData**NB: MariaDB credential(username&password) are generated using md5 hash of your server hostname and will be put into /etc/mysql/my.cnf after [client] directive.