阿里云服务器配置及项目上线配置(纯手动配置)
本人用的是ubuntu16.04 64位版服务器,其他Linux服务器大同小异 所需软件在本文末尾提供永久下载链接 1.添加用户: useradd -m 用户名 2.设置用户密码: passwd 用户名 3.将用户添加到用户组: usermod -a -G adm 用户名 usermod -a -G sudo 用户名 4.为用户添加权限: vim /etc/sudoers 在 root ALL=(ALL:ALL) 下添加下边代码,不要注释这句代码! 用户名 ALL=(ALL:ALL) ALL :wq! 5.设置vim: su - suyin vim .vimrc syntax on set nu set autoindent set smartindent set tabstop=4 set shiftwidth=4 set showmatch set ruler set cindent set background=dark :wq! 1.更新源: sudo apt-get update 2.安装安全公共组件: sudo apt-get install software-properties-common 3.添加python3.6环境: sudo add-apt-repository ppa:jonathonf/python-3.6 4.再次更新源: sudo apt-get