zoukankan      html  css  js  c++  java
  • centos开发环境搭建

    1、检查是否安装php

    php -v
    
    yum install php
    

    2、安装composer

    curl -sS https://getcomposer.org/installer |php      //下载composer包
    
    mv composer.phar /usr/local/bin             //将composer.phar移动到/usr/local/bin下
    
    mv /usr/local/bin/composer.phar /usr/local/bin/composer    //将composer设置为全局命令
    
    composer config -g repo.packagist composer https://packagist.phpcomposer.com   //将composer换成国内源
    
    composer -v     //查看是否安装成功
    

     

    3、安装npm

    curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
    
    yum install -y nodejs                  
    
    npm install -g cnpm --registry=https://registry.npm.taobao.org           //将源改为淘宝的
    npm -v            //安装完成,查看npm版本
    
    npm install -g npm          //更新npm版本
    

    4、安装lnmp

    参考文章 https://lnmp.org/install.html

    5、安装phpstorm

    •  需要jdk至少1.8以上
    yum install java-1.8.0-openjdk* -y
    
    •  安装phpstorm
    mkdir /home/phpstorm
    
    tar -zxvf PhpStorm-9.0.2.tar.gz -C /home/phpstorm/
    
    /home/phpstorm/PhpStorm-141.2462/bin
    
    ./phpstorm.sh
    
     ps 注册码
    
    User Name:
    
    ninja911.com
    
    
    License Key:
    
    ===== LICENSE BEGIN =====
    79973-12042010
    00001smj8X0xI!kORP4r5kY1aUZcu7
    k9iIvZRTZC7h5YYnVXm"p2awBPonXV
    Pta2ruqGZ9s5WJr1qWCTBOX20fDA4Z
    ===== LICENSE END =====
    • 可能报错
    [root@localhost bin]# ./phpstorm.sh 
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x00007fe314a4e190, pid=57436, tid=140614343853824
    #
    # JRE version: OpenJDK Runtime Environment (7.0_51-b31) (build 1.7.0_51-mockbuild_2014_06_09_19_19-b00)
    # Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  0x00007fe314a4e190
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /root/java_error_in_WEBIDE_57436.log
    #
    # If you would like to submit a bug report, please include
    # instructions on how to reproduce the bug and visit:
    #   http://icedtea.classpath.org/bugzilla
    #
    ./phpstorm.sh: 行 187: 57436 已放弃               (吐核)LD_LIBRARY_PATH="$IDE_BIN_HOME:$LD_LIBRARY_PATH" "$JDK/bin/java" $AGENT "-Xbootclasspath/a:$IDE_HOME/lib/boot.jar" -classpath "$CLASSPATH" $VM_OPTIONS "-Djb.vmOptionsFile=$VM_OPTIONS_FILES_USED" "-XX:ErrorFile=$HOME/java_error_in_WEBIDE_%p.log" -Djb.restart.code=88 -Didea.paths.selector=WebIde90 $IDE_PROPERTIES_PROPERTY $IDE_JVM_ARGS $REQUIRED_JVM_ARGS $MAIN_CLASS_NAME "$@"

    原因jdk版本问题,

    jdk卸载:

    rpm -qa|grep jdk       查看jdk版本
    java-1.7.0-openjdk-headless-1.7.0.51-2.4.5.5.el7.x86_64
    java-1.7.0-openjdk-1.7.0.51-2.4.5.5.el7.x86_64
    
    rpm -e --nodeps java-1.7.0-openjdk-1.7.0.51-2.4.5.5.el7.x86_64
    
  • 相关阅读:
    Java8初体验(二)Stream语法详解
    java8的新特性以及用法简介
    HDFS之SequenceFile和MapFile
    深入分析Parquet列式存储格式【转】
    Flume中的HDFS Sink配置参数说明【转】
    采用alluxio提升MR job和Spark job性能的注意点
    spark on alluxio和MR on alluxio测试(改进版)【转】
    python入门-分类和回归各种初级算法
    C++函数调用时的参数传递-3中传递方式
    OpenCV颜色空间——HLS颜色空间
  • 原文地址:https://www.cnblogs.com/xdjun/p/10439054.html
Copyright © 2011-2022 走看看