Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 72
» Latest member: stewartshic
» Forum threads: 342
» Forum posts: 369

Full Statistics

Online Users
There are currently 8 online users.
» 0 Member(s) | 7 Guest(s)
Google

Latest Threads
Test, just a XRumer 23 St...
Forum: Announcements
Last Post: XRumer23lip
09-25-2025, 01:01 AM
» Replies: 0
» Views: 27
Comment créer un sous-dom...
Forum: Cpanel
Last Post: XRumer23lip
10-28-2024, 04:29 AM
» Replies: 1
» Views: 1,186
Tutorial: Create an Onlin...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:46 AM
» Replies: 0
» Views: 283
Tutoriel : Créer un Site ...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:45 AM
» Replies: 0
» Views: 311
Tutorial: Create a Profes...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:13 AM
» Replies: 0
» Views: 217
Tutoriel : Créer un Site ...
Forum: Ellohost
Last Post: mikox
08-03-2024, 07:12 AM
» Replies: 0
» Views: 248
Slither.io - Become the L...
Forum: Others
Last Post: mikox
04-05-2024, 07:30 AM
» Replies: 0
» Views: 307
MooMoo.io - Build, Defend...
Forum: Others
Last Post: mikox
04-05-2024, 07:28 AM
» Replies: 0
» Views: 327
Smash Karts - The Ultimat...
Forum: Others
Last Post: mikox
04-05-2024, 07:26 AM
» Replies: 0
» Views: 708
Dream Chef - A Cooking Ad...
Forum: Others
Last Post: mikox
04-05-2024, 07:24 AM
» Replies: 0
» Views: 303

 
  Comment vérifier l'état de PostgreSQL
Posted by: aaron - 09-08-2023, 01:10 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Comment vérifier l'état de PostgreSQL</title>
</head>

<body>
    <p>Après avoir installé PostgreSQL, vérifiez s'il est activé et opérationnel. Utilisez l'utilitaire de commande systemctl ou service pour vérifier l'état du service :</p>

    <pre><code>sudo service postgresql status</code></pre>

    <pre><code>sudo systemctl status postgresql</code></pre>

    <p>Si PostgreSQL est activé, votre ligne de commande affichera "actif" et "chargé", similaire à ce qui suit :</p>
    <img src="https://ellohost.com/imageshack/uploads/1694178116_64fb1b441cb8f.webp">

    <p>En plus de l'état du service, vérifiez si PostgreSQL est prêt à accepter une connexion en utilisant la commande suivante :</p>

    <pre><code>sudo pg_isready</code></pre>

    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoignez ellohost</button></a>
</body>

</html>

Print this item

  Comment installer PostgreSQL sur Ubuntu
Posted by: aaron - 09-08-2023, 01:09 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Comment installer PostgreSQL sur Ubuntu</title>
</head>

<body>
    <p>Avant de continuer, assurez-vous que votre serveur privé virtuel (VPS) fonctionne sous Ubuntu 20.04 ou une version ultérieure.</p>

    <h2>Option 1 - Installation depuis le référentiel APT</h2>

    <p>La méthode la plus courante pour installer PostgreSQL sur Ubuntu est à partir du référentiel officiel via le gestionnaire de paquets APT. Voici les étapes à suivre :</p>

    <ol>
        <li>Exécutez ces commandes pour importer la clé du référentiel officiel de PostgreSQL dans le gestionnaire de paquets APT :
            <pre><code>sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'</code></pre>
            <pre><code>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg -</code></pre>
        </li>

        <li>Actualisez APT pour synchroniser tous les référentiels en utilisant cette commande :
            <pre><code>sudo apt update</code></pre>
        </li>

        <li>Installez la dernière version de PostgreSQL avec APT et des privilèges sudo :
            <pre><code>sudo apt-get -y install postgresql</code></pre>
        </li>

        <li>Pour confirmer l'installation, exécutez cette commande :
            <pre><code>sudo -u postgres psql</code></pre>
        </li>

        <li>Entrez la commande de requête de version PostgreSQL :
            <pre><code>SELECT version();</code></pre>
        </li>
    </ol>

    <h2>Option 2 - Installation à partir du référentiel local d'Ubuntu</h2>

    <p>La méthode alternative d'installation de PostgreSQL utilise le référentiel local d'Ubuntu. Voici les étapes :</p>

    <ol>
        <li>Exécutez cette commande pour actualiser le référentiel Ubuntu :
            <pre><code>sudo apt-get update</code></pre>
        </li>

        <li>Vérifiez le référentiel apt PostgreSQL disponible en utilisant cette commande :
            <pre><code>sudo apt show postgresql</code></pre>
        </li>

        <li>Exécutez cette commande pour installer la dernière version disponible. Dans notre cas, il s'agit de la version 12.15 :
            <pre><code>sudo apt install postgresql postgresql-contrib</code></pre>
        </li>

        <li>Pour vérifier si l'installation de PostgreSQL a réussi, exécutez ce qui suit :
            <pre><code>sudo -u postgres psql</code></pre>
        </li>

        <li>Ensuite, exécutez cette commande pour vérifier la version actuelle de PostgreSQL :
            <pre><code>SELECT version();</code></pre>
        </li>
    </ol>

    <p>L'invite de commande devrait indiquer que la version du serveur PostgreSQL 12.15 est installée avec succès, similaire à ceci :</p>
    <img src="https://ellohost.com/imageshack/uploads/1694177988_64fb1ac4c2686.webp">

    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoignez ellohost</button></a>
</body>

</html>

Print this item

  How to Install PostgreSQL on Ubuntu
Posted by: aaron - 09-08-2023, 01:08 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>How to Install PostgreSQL on Ubuntu</title>
</head>

<body>
    <p>Before proceeding, ensure your virtual private server (VPS) runs Ubuntu 20.04 or later.</p>

    <h2>Option 1 – Installation From APT Repository</h2>

    <p>The popular method to install PostgreSQL on Ubuntu is from the official repository via the APT package manager. Here are the steps to do so:</p>

    <ol>
        <li>Run these commands to import the key from PostgreSQL’s official repository to the APT package manager:
            <pre><code>sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'</code></pre>
            <pre><code>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg -</code></pre>
        </li>

        <li>Refresh APT to synchronize all repositories using this command:
            <pre><code>sudo apt update</code></pre>
        </li>

        <li>Install the latest version of PostgreSQL with APT and sudo privileges:
            <pre><code>sudo apt-get -y install postgresql</code></pre>
        </li>

        <li>To confirm the installation, run this command:
            <pre><code>sudo -u postgres psql</code></pre>
        </li>

        <li>Enter the PostgreSQL version query statement:
            <pre><code>SELECT version();</code></pre>
        </li>
    </ol>

    <h2>Option 2 – Installation Using Local Ubuntu Repository</h2>

    <p>The alternative PostgreSQL installation method uses the local Ubuntu repository. Here are the steps:</p>

    <ol>
        <li>Run this command to refresh the Ubuntu repository:
            <pre><code>sudo apt-get update</code></pre>
        </li>

        <li>Verify the available PostgreSQL apt repository using this command:
            <pre><code>sudo apt show postgresql</code></pre>
        </li>

        <li>Run this command to install the latest available version. In our case, it is version 12.15:
            <pre><code>sudo apt install postgresql postgresql-contrib</code></pre>
        </li>

        <li>To verify whether the PostgreSQL installation is successful, run the following:
            <pre><code>sudo -u postgres psql</code></pre>
        </li>

        <li>Then, run this command to check the current PostgreSQL version:
            <pre><code>SELECT version();</code></pre>
        </li>
    </ol>

    <p>The command line should show that the PostgreSQL server version 12.15 is successfully installed, similar to this:</p>
    <img src="https://ellohost.com/imageshack/uploads/1694177988_64fb1ac4c2686.webp">

    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Join ellohost</button></a>
</body>

</html>

Print this item

  Specify Date and Time as String with Linux Touch Command
Posted by: aaron - 09-08-2023, 12:56 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Specify Date and Time as String with Linux Touch Command</title>
</head>

<body>
    <p>You can also specify the date and time as a string by using the -d option with the Linux touch command. The following Linux touch command example sets the date to the 8th of March, and the time is automatically set to 00:00:</p>
    <pre><code>touch -d '8 Mar' file_name.txt</code></pre>
    <p>Instead of specifying the date as a string, you can select the time as one. In that case, the date will be set to the current date automatically:</p>
    <pre><code>touch -d '20:10' file_name.txt</code></pre>
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Join ellohost</button></a>
</body>

</html>

Print this item

  Spécifier la date et l'heure sous forme de chaîne avec la commande Linux Touch
Posted by: aaron - 09-08-2023, 12:55 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Spécifier la date et l'heure sous forme de chaîne avec la commande Linux Touch</title>
</head>

<body>
    <p>Vous pouvez également spécifier la date et l'heure sous forme de chaîne en utilisant l'option -d de la commande Linux touch. L'exemple suivant de commande Linux touch défini la date au 8 mars, et l'heure est automatiquement définie à 00:00 :</p>
    <pre><code>touch -d '8 Mar' file_name.txt</code></pre>
    <p>Au lieu de spécifier la date sous forme de chaîne, vous pouvez sélectionner l'heure en tant que chaîne. Dans ce cas, la date sera automatiquement définie sur la date actuelle :</p>
    <pre><code>touch -d '20:10' file_name.txt</code></pre>
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoindre ellohost</button></a>
</body>

</html>

Print this item

  Définir l'horodatage à l'aide d'un fichier de référence avec la commande Linux Touch
Posted by: aaron - 09-08-2023, 12:54 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Définir l'horodatage à l'aide d'un fichier de référence avec la commande Linux Touch</title>
</head>

<body>
    <p>La commande Linux touch peut également définir l'heure d'accès et de modification d'un fichier en lisant les informations d'horodatage depuis un autre fichier. Par exemple, la commande touch suivante avec l'option -r analysera les informations d'horodatage du fichier reference.txt et définira ces valeurs d'horodatage pour file_name.txt. Voici un exemple de la commande :</p>
    <pre><code>touch -r reference.txt file_name.txt</code></pre>
    <img src="https://ellohost.com/imageshack/uploads/1694177492_64fb18d4a8d20.webp">
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoindre ellohost</button></a>
</body>

</html>

Print this item

  Set Timestamp Using a Reference File with Linux Touch Command
Posted by: aaron - 09-08-2023, 12:52 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Set Timestamp Using a Reference File with Linux Touch Command</title>
</head>

<body>
    <p>The Linux touch command can also set a file’s access and modification time by reading the timestamp information from another file. For example, the following touch command with the -r option will scan the timestamp information from reference.txt and set these timestamp values to file_name.txt. Here’s an example of the command:</p>
    <pre><code>touch -r reference.txt file_name.txt</code></pre>
    <img src="https://ellohost.com/imageshack/uploads/1694177492_64fb18d4a8d20.webp">
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Join ellohost</button></a>
</body>

</html>

Print this item

  Change Timestamp Using a Symbolic Link with Linux Touch Command
Posted by: aaron - 09-08-2023, 12:50 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Change Timestamp Using a Symbolic Link with Linux Touch Command</title>
</head>

<body>
    <p>When you use a symbolically linked file name with the Linux touch command, the timestamp information for the original file, that was pointed by the link file, gets modified. To change the access and modification time to the current time for a symbolically linked file, use the -h option:</p>
    <pre><code>touch -h SymbolicLinkFile</code></pre>
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Join ellohost</button></a>
</body>

</html>

Print this item

  Changer l'horodatage en utilisant un lien symbolique avec la commande Linux Touch
Posted by: aaron - 09-08-2023, 12:49 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>

<head>
    <title>Changer l'horodatage en utilisant un lien symbolique avec la commande Linux Touch</title>
</head>

<body>
    <p>Lorsque vous utilisez un nom de fichier lié de manière symbolique avec la commande Linux touch, les informations d'horodatage du fichier d'origine, vers lequel pointait le fichier de lien, sont modifiées. Pour changer l'heure d'accès et de modification au moment actuel pour un fichier lié de manière symbolique, utilisez l'option -h :</p>
    <pre><code>touch -h FichierLienSymbolique</code></pre>
    <br><br>
    <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoindre ellohost</button></a>
</body>

</html>

Print this item

  Configurer l'heure d'accès et de modification spécifique avec Touch Linux
Posted by: aaron - 09-08-2023, 12:39 PM - Forum: Others - No Replies

<!DOCTYPE html>
<html>
<head>
  <title>Définir une heure d'accès et de modification spécifique</title>
</head>
<body>
  <h1>Définir une heure d'accès et de modification spécifique</h1>

  <p>Il est également possible de définir l'heure d'accès et de modification d'un fichier à une date spécifique en utilisant l'option <code>t</code> suivie d'une date-heure. Cela ressemblerait à ceci :</p>

  <pre>touch -t 202203081047.30 nom_fichier.txt</pre>

  <p>Assurez-vous de vérifier si la date a changé à l'aide de la commande suivante :</p>

  <pre>ls -lu nom_fichier.txt</pre>

  <img src="https://ellohost.com/imageshack/uploads/1694176627_64fb157387bed.jpeg">

  <p>N'oubliez pas que le format date-heure doit suivre le style CCYYMMDDhhmm.ss :</p>

  <ul>
    <li>CC – les deux premiers chiffres de l'année</li>
    <li>YY – les deux derniers chiffres de l'année</li>
    <li>MM – le mois de l'année (01-12)</li>
    <li>DD – le jour du mois (01-31)</li>
    <li>hh – l'heure de la journée (00-23)</li>
    <li>mm – la minute de l'heure (00-59)</li>
    <li>ss – la seconde de la minute (00-59)</li>
  </ul>

  <br><br>
  <a href="https://ellohost.com"><button style="padding: 10px 20px; background-color: blue; color: blue; border: none;">Rejoindre ellohost</button></a>
</body>
</html>

Print this item