An open API service indexing awesome lists of open source software.

https://github.com/skye-z/devkit-shell

This is a Java server environment installation script to help developers quickly build Java project-related environment.
https://github.com/skye-z/devkit-shell

java linux mysql redis shell

Last synced: 3 months ago
JSON representation

This is a Java server environment installation script to help developers quickly build Java project-related environment.

Awesome Lists containing this project

README

          

# Stacks Dev Kit Shell

[![](https://img.shields.io/badge/version-1.0.1-brightgreen.svg)](https://github.com/skai-zhang/DevKit-Shell/commits/master) [![](https://img.shields.io/badge/license-GLPv3-red.svg)](https://github.com/skai-zhang/DevKit-Shell/blob/master/LICENSE)

支持系统: Debian

支持组件: OpenJDK、MySQL、Redis

## 使用方法

在服务器上使用`root`权限登录, 然后复制粘贴下方代码, 回车开始执行

> wget -N --no-check-certificate https://raw.githubusercontent.com/skai-zhang/DevKit-Shell/master/devkit.sh && bash devkit.sh

## 组件指令

MySQL

* 启动: `service mysql start`
* 停止: `service mysql stop`
* 重启: `service mysql restart`

Redis

* 启动: `service redis start`
* 停止: `service redis stop`
* 重启: `service redis restart`

## 更多操作

### MySQL启用远程访问:

为了保证数据库安全, 这里不会直接授权`root`账户

我们先创建一个账户`remote`, 密码设为`remote@psd`

``` sql
CREATE USER 'remote'@'%' IDENTIFIED BY 'remote@psd';
```

然后为这个账户授权

```sql
grant all on *.* to 'remote'@'%';
```

最后刷新一下权限

```sql
flush privileges;
```