zoukankan      html  css  js  c++  java
  • ubantu16.04搭配新开发环境说明

    安装好ubantu系统后,往往需要搭配个人开发环境,梳理了一些常用的安装步骤:

    1.安装node.js

    更新ubuntu软件源

    sudo apt-get update

    sudo apt-get install -y python-software-properties software-properties-common

    sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update

    安装nodejs

    sudo apt-get install nodejs

    sudo apt install nodejs-legacy

    sudo apt install npm

    更新npm的包镜像源,方便快速下载

    sudo npm config set registry https://registry.npm.taobao.org

    sudo npm config list

    全局安装n管理器(用于管理nodejs版本)

    sudo npm install n -g

    安装最新的nodejs(stable版本)

    sudo n stable sudo node -v

    更新npm版本

    npm install npm@latest -g

    安装出现问题:

     这是未设置配置文件,执行以下文件应该就ok了:

    npm config set registry https://registry.npm.taobao.org --global
    npm config set disturl https://npm.taobao.org/dist --global 
     

    2.安装git

    sudo apt-get install git-core

    3.安装VScode

    sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
    sudo apt-get update
    sudo apt-get install ubuntu-make
    sudo umake web visual-studio-code 
    # 此处会询问安装目录,直接回复a即可

    4.安装mysql

    sudo apt-get install mysql-server
    sudo apt-get install mysql-client

     开启远程连接:

    (1)修改用户表

     use mysql;

       select * from user;

       update user set host = '%' where user = 'root';

    (2)修改配置文件,开放3306端口

    sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

    将bind-address = 127.0.0.1注销​

    然后重启即可。

    
    
  • 相关阅读:
    【转】织梦为栏目添加图片的方法
    写在php设计模式前
    memcache 开机启动
    php 列出当前目录
    print echo 的区别
    php 报错等级
    nginx 启动脚本
    centos 编译 安装php
    修改linux iptable规则
    linux yum 安装软件
  • 原文地址:https://www.cnblogs.com/jlj9520/p/7966949.html
Copyright © 2011-2022 走看看