tencent cloud


Installing Software via zypper (SUSE)

Last updated: 2022-04-07 18:09:52

    Make sure that you have followed the steps in Installing Software via YAST in SUSE Environment install the necessary software.

    1. Configuration of nginx

    1. Start nginx service

    Start the nginx with the following command:

    service nginx restart
    1. Test whether nginx service is working properly

    Test with the following command:


    If the result is as shown below and displays "'index.html' saved" at the end, it means the nginx service is working properly.

    --2013-02-20 17:07:26--
    Connecting to connected.
    HTTP request sent, awaiting response... 200 OK
    Length:  151 [text/html]
    Saving to:  'index.html'
    100%[==========================================================================================>] 151 --.-K/s in 0s 
    2013-02-20 17:07:26 (37.9 MB/s) - 'index.html' saved [151/151]
    1. In the browser, visit the Public IP of CentOS CVM to check if the nginx service is working properly.

    The appearance of the following page indicates that nginx has been installed and configured successfully.

    2. Configuration of PHP

    1. Create a new configuration file php-fpm.conf with the following command:
    vim /etc/php5/fpm/php-fpm.conf

    Write the following:

    error_log = /var/log/php-fpm.log
    user = nobody
    group = nobody
    listen =
    pm = dynamic
    pm.max_children = 5
    pm.start_servers = 2
    pm.min_spare_servers = 1
    pm.max_spare_servers = 3

    3. Start services

    Start all services with the following commands:

    /etc/init.d/mysql start; /etc/init.d/php-fpm start; /etc/init.d/nginx start


    4. Environment configuration validation

    Create index.php under a web directory using the following command:

    vim /usr/share/nginx/html/index.php

    Write the following:

    echo "<title>Test Page</title>";
    echo "hello world";

    In the browser, visit the Public IP of SUSE CVM to check whether the environment configuration is successful. If the webpage shows "hello world", it means the configuration is successful.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support