Configure the software used on Linux

When a new linux server to get the time to go through the following five general configuration
    modifications HOSTANME
        vi / etc / sysconfig / Network
    modify the HOSTNAME and IP mapping
        vi / etc / hosts
    turn off the firewall
        service iptables stop
    shut down the firewall boot
        chkconfig iptables off
    restart linux server
        reboot

1. Configure jdk  

        1.1. Creating apps directory in your home directory (in accordance with customary)      

    mkdir apps        

        1.2. Use of xftp jdk tool to extract the packet (the tar.gz format) uploaded to the server linux apps folder
        1.3. Jdk extracting archive
            the tar -zxvf xxxxx.gar.gz
        1.4. Jdk good files are decompressed, and to get the absolute path of its
            pwd
        1.5. configuration environment variable
            vi / etc / Profile
        1.6. the environment variables to take effect immediately
            Source / etc / Profile
        1.7. detect whether the configuration jdk
            javac -version

2. Configure tomcat
        that is, as long as all components downloaded from apache official website / frameworks / projects require jdk environment variable support
        2.1 download tomcat8 from the official website
        2.2. Use xftp the tomcat of extracting package uploaded to the linux server
        2.3. Unpack tomcat
            tar -zxvf xxxxx.tar.gz
        2.4. direct start tomcat
            (all linux and Mac startup files, all ending in .sh)
            into the tomcat bin directory
                ./startup.sh
            or go to the tomcat directory
                bin / startup. SH
        . 2.5 tomcat detect whether a successful start
            jps (only after successful configuration jdk command can be used)
            2779 Jps: represents the jdk environment variables
            2736 Bootstrap: represents the start tomcat
        2.6 stop tomcat.
            go to the bin directory of tomcat
            ./ shutdown.sh
            into tomcat directory
            bin / shutdown.sh
            the kill -9 2830 (2830 for the tomcat process ID, you can dynamically acquire, but strongly recommended, may damage the internal data or files)
  3. Configure Maven
        3.1. apache download from the official website of Maven
        3.2. Use xftp tools uploaded to the linux server
        3.3 unzip maven archive.
            tar -zxvf xxxx
        3.4 maven need to configure the environment variable.
            vi / etc / Profile
            and configure the Java environment variables similarly
            Export MAVEN_HOME =
            Export the PATH = $ the PATH: $ JAVA_HOME / bin: $ MAVEN_HOME / bin
            either Java / maven environment variables must be configured before PATH
            If the configuration under the PATH
                because the loader environment variable must be configured before the PATH
        3.5. the environment variables to take effect immediately
            Source / ECT / Profile
        3.6. detect maven environment variable configuration is successful
            mvn -v
        3.7. Configuring maven local repository / Ali cloud images
            settings.xml
            !!!!! in all configurations, not allowed to move comes with configuration information if you need to configure, copy out a
            here, in a home built below a repository folder as a local warehouse, local warehouse location modifies the absolute path to the local repository folder in the file setting.xml :::

1 <localRepository>/home/reposiroty</localRepository>

            Ali cloud images

1 <mirrors>
2    <mirror>
3         <id>nexus-aliyun</id>
4         <mirrorOf>*</mirrorOf>
5         <name>Nexus aliyun</name>
6         <url>http://maven.aliyun.com/nexus/content/groups/public</url>
7    </mirror>
8 </mirrors>

        3.8. Configuring maven goal jdk version
            maven that comes with the jdk version is 1.5, just the native environment jdk1.8
            add many new methods and classes in 1.8, which is not in the 1.5
            maven start compiling target version jdk (1.5)
            but has been used in the project brought a 1.8 class, maven is not compiled, the error will be
            back and IDEA integrated development tools automatically native jdk environment, which is integrated in the IDEA maven in (Maven goals it becomes a compiled version 1.8)
            but eclipse / MyEclipse will be given! ! ! !

 1      <profile>     
 2                 <id>jdk1.8</id>      
 3                 <activation>     
 4                     <activeByDefault>true</activeByDefault>      
 5                     <jdk>1.8</jdk>     
 6                 </activation>      
 7                 <properties>     
 8                     <maven.compiler.source>1.8</maven.compiler.source>      
 9                     <maven.compiler.target>1.8</maven.compiler.target>      
10                     <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>     
11                 </properties>     
12     </profile>

4. Configure svn (server-side)
        4.1 installed on linux from svn
            do not need from the official website (because linux is already integrated svn, just need to load come in)
            as long as linux comes with a tool / framework / component / project, you do not need download, can be installed directly
            linux does not have these things, you must use compressed tar.gz package to install
            yum -y install: installation command (only install linux comes, can not install non-native)
            yum -y install Subversion
        4.2. detect whether the installation was successful svn
            svn --version --version or Subversion
        4.3. create a folder (svn used to store configuration files required, the code behind this folder for presentations)
            created in the home directory
            mkdir -p svn / svnfile
        4.4.svn load configuration files
            (svn command comes, does not belong to linux native commands)
            svnadmin the Create / Home / svn / svnfile
        4.5. to achieve their configuration
            to achieve their three configuration files in the conf directory
            Note: When configuring the following three documents, all the configurations have to start from scratch, not any spaces! !
            passwd:
                Configure the svn require a user name and password for
                all the svn user configuration must be configured under [users] tag, it would not take effect
                [users]
                username = password
                For example: Mike = 123456
            authz:
                Configure the user svn right information (read, write)
                all the permissions configuration must be configured under [groups] label, or do not take effect
                [/]: get all user passwd file, as far as is [users] are available to all users to get
                the right information and all related svn users must be configured under the [/] tags, or do not take effect
                username rw =
                Mike = rw
            svnserver.conf:
                anon = the Read-Access
                    when the user is not logged when you can svn operations performed (anonymous operations that can be performed)
                    write: write on behalf of here, that can be read and written, in this general configuration as the Read
                    the Read, the Write, none
                auth = the Write-Access
                    When the operator svn user login can perform
                    write: both can read and write
                password-db = passwd
                    all the svn user's account password passwd file matching mechanism to manage
                authz-db = authz
                    all the svn user's permissions to manage files authz
                realm = / home / svn / svnfile
                    specifies the project's svn upload directory, that is to say which specific projects uploaded to a file folder in svn
        4.6. start svn
            svnserve -d -r / Home / svn / svnfile
            do not see the error message description successful start

 

Guess you like

Origin www.cnblogs.com/jkgreat/p/11412536.html