GithubHelp home page GithubHelp logo

netdisk's Introduction

netdisk


服务器编译

/server

  1. make

如果找不到<openssl/rsa.h>

sudo apt install libssl-dev

如果找不到<mysql/mysql.h>

sudo apt install libmysqlclient-dev

  1. 生成服务器rsa

openssl genrsa -out server_rsa.key 3072

openssl rsa -in server_rsa.key -pubout -out server_rsa_pub.key

将服务器公钥放入客户端

cp server_rsa_pub.key ../client/

  1. 执行

    1. 修改server.conf里ip地址为本机地址(默认为127.0.0.1 8888)
    2. 修改sql.conf里user和password为自己数据库的
    3. ./server ../conf/server.conf

客户端编译

/client

  1. make

  2. ./client <服务器ip> <服务器port> (默认 ./client 127.0.0.1 8888)


测试数据库

登录mysql

create database netdisk;

mysql -u <username> -p netdisk < server/netdisk.sql

netdisk's People

Contributors

qazwsxedckll avatar

Stargazers

Geekman_1337 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.