Giter VIP home page Giter VIP logo

homework-linux's Introduction

homework-linux

在linux上部署git服务的总结:

  • 部署某个服务的时候,可以通过linux发行版中自带的包管理器直接下载相应软件。比如在centos上部署git服务,接可以使用它提供的包管理(yum)进行直接安装:

      yum install git

    或者是在软件的官网去下载压缩包或者源码进行编译。当然直接使用包管理器进行安装是最方便的,但是有些包管理软件更新比较缓慢,可能不是最新的软件,所以安装之前建议先更新一下软件源。

  • 安装完软件后,如果是部署服务的话,就说明可以让其他网络下的终端进行访问,所以权限问题也是特别需要注意的。我们可以给准备部署的服务建立孤立的新用户来进行访问,需要的权限慢慢的去开通,切记不能使用root用户来启动服务,这样暴露的权限过大,容易遭受攻击。

  • 当我们创建好新的用户后,需要立即修改一下对应的密码或者将用户设置成不允许使用密码直接登录,需要使用SSH keys来进行认证登录,来确保安全性

  • linux中每个文件都有其权限,文件的权限不能直接全部放开,当需要修改时,最好基于指定用户去给予最少的权限,而不是直接把权限设置很大。

homework-linux's People

Contributors

zachrey avatar zhenchuanxfullstack avatar

Watchers

 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.