Maison  >  Questions et réponses  >  le corps du texte

shell - apt-get install lamp-server^ 是什么个情况

我想,apt-get做为一个包管理器,lamp-server^这个包中包涵了其它包的安装。
那么,我想问的是:
lamp-server^这个包权威吗?有没有关于它的详细资料

附加问题,
这否有这样的SHELL文件,执行这个文件就自动部署LAMP环境(或者其它),用来借鉴,来写自己的自动部署SHELL脚本

迷茫迷茫2720 Il y a quelques jours834

répondre à tous(3)je répondrai

  • 黄舟

    黄舟2017-04-21 10:59:09

    C'est assez intéressant. Je l'ai recherché moi-même et j'ai appris quelques choses. Publier ceci peut être utile pour l'affiche originale

    .

    1,
    J'ai trouvé ce tutoriel officiel via Google "apt-get install lamp-server^"

    https://help.ubuntu.com/community/ApacheMySQLPHP

    sudo apt-get install lamp-server^

    Faites attention au curseur (^) à la fin.

    2. Que signifie ce ^ ? Pourquoi est-il signalé en particulier ?

    Je l'ai essayé sur ma machine, mais je ne trouve pas cette chose sans ajouter ou remplacer *.

    Invoquez à nouveau Google "apt-get install caret"

    J'ai trouvé ça

    http://askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

    Well, the answer is that the caret symbol is a short form for performing a task that otherwise the program “tasksel” would have done with the given package name. tasksel is a program to ease the installation of commonly used things that go together for a particular use.
    

    3, Oh, ce serveur de lampes^ s'avère être lié au programme taskel.

    Google taskel à nouveau, https://help.ubuntu.com/community/Tasksel

    Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated "task" onto your system.
    

    Eh bien, la réponse à la question de lz est prête à sortir :

    Le package lamp-server^ fait-il autorité ?

    1, ce n'est pas un paquet. C'est une tâche
    2. Je ne connais pas la définition de l'autorité. Quoi qu'il en soit, tous les logiciels proviennent de la source apt-get.


    Je n'entrerai pas dans les questions supplémentaires, il y en a trop, donnez-moi simplement un mot-clé et recherchez-le vous-même sur Google

    nginx mysql php install shell bash

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-21 10:59:09

    Propriétaire, laissez-moi répondre à quelques questions supplémentaires pour vous

    Je me souviens qu'il existe un truc appelé lnmp, qui est linux+nginx+mysql+php, qui permet l'installation en un clic de ces éléments. Je ne sais pas si c'est ce que veut l'affiche originale.
    Il existe une autre chose appelée PredictionIO, qui est écrite en python. Son script d'installation, supplier.sh, installe automatiquement mongoDB+hadoop. Vous pouvez également vous y référer

    .
    #!/usr/bin/env sh
    
    # PredictionIO Third Party Software Utilities
    
    # Third party software
    VENDORS_PATH="$BASE/vendors"
    VENDOR_HADOOP_PATH="$VENDORS_PATH/hadoop-1.2.1"
    VENDOR_MONGODB_PATH="$VENDORS_PATH/mongodb-linux-x86_64-2.4.6"
    
    VENDOR_HADOOP_NAME="Apache Hadoop 1.2.1"
    VENDOR_MONGODB_NAME="MongoDB 2.4.6 (64-bit Linux)"
    
    # Utilities
    command_exists () {
        command -v "" >/dev/null 2>&1
    }
    
    process_exists () {
        echo $(ps -ef | grep "" | grep -v "grep" | wc -l)
    }
    
    install_mongodb () {
        echo "Going to download and install $VENDOR_MONGODB_NAME..."
        local VENDORS_PATH=
        mkdir -p $VENDORS_PATH
        cd $VENDORS_PATH
        curl -O http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.6.tgz
        tar zxvf mongodb-linux-x86_64-2.4.6.tgz
    }
    
    install_hadoop () {
        while true; do
            read -p "Please supply the absolute path to your Java installation: " JAVA_HOME
            if [ $JAVA_HOME ] && [ -d $JAVA_HOME ] && [ -x "$JAVA_HOME/bin/java" ] ; then
                echo "Using directory $JAVA_HOME as your Java installation..."
                break
            else
                echo "Please provide a valid Java installation directory"
            fi
        done
        echo "Going to download and install $VENDOR_HADOOP_NAME..."
        local VENDORS_PATH=
        mkdir -p $VENDORS_PATH
        cd $VENDORS_PATH
        curl -O http://archive.apache.org/dist/hadoop/common/hadoop-1.2.1/hadoop-1.2.1-bin.tar.gz
        tar zxvf hadoop-1.2.1-bin.tar.gz
        echo "Configuring Hadoop in pseudo-distributed mode..."
        cp ../conf/hadoop/* $VENDOR_HADOOP_PATH/conf
        echo "export JAVA_HOME=$JAVA_HOME" >> $VENDOR_HADOOP_PATH/conf/hadoop-env.sh
        echo "Configuring PredictionIO to use Hadoop in vendors area..."
        echo "io.prediction.commons.settings.hadoop.home=$VENDOR_HADOOP_PATH" >> ../conf/predictionio.conf
        echo "Trying to format HDFS..."
        $VENDOR_HADOOP_PATH/bin/hadoop namenode -format
    }
    
    start_mongodb () {
        echo "Going to start MongoDB..."
        mkdir -p "$VENDORS_PATH/mongodb/data"
        mkdir -p "$VENDORS_PATH/mongodb/logs"
        $VENDOR_MONGODB_PATH/bin/mongod --config conf/mongodb/mongodb.conf >/dev/null 2>&1 &
    }
    
    start_hadoop () {
        echo "Going to start Hadoop..."
        $VENDOR_HADOOP_PATH/bin/start-all.sh
    }
    
    stop_hadoop () {
        echo "Going to stop Hadoop..."
        $VENDOR_HADOOP_PATH/bin/stop-all.sh
    }
    
    vendor_mongodb_exists () {
        [ -e "$VENDOR_MONGODB_PATH/bin/mongod" ]
    }
    
    vendor_hadoop_exists () {
        [ -e "$VENDOR_HADOOP_PATH/bin/hadoop" ]
    }
    
    

    répondre
    0
  • PHP中文网

    PHP中文网2017-04-21 10:59:09

    N'oubliez pas que lors de l'utilisation de Fedora, il existait une option permettant d'installer un ensemble de logiciels avec une certaine fonction. J'ai l'impression que ce serait la même chose.

    répondre
    0
  • Annulerrépondre