One place for hosting & domains

      Change

      How to Change Your Email Address


      Updated by Linode

      Written by Linode

      Changing your account’s email address is easy and can be done two different ways.

      From the Cloud Manager

      1. Log in to the Cloud Manager.

      2. Click on your username and choose My Profile from the drop down menu.

        Click My Profile from Username Drop Down Menu

      3. On the My Profile page, in the Email field, enter the email you would like to associate with your account.

      4. Click the Save button.

        Click to Save a New Email

      5. Cloud Manager will tell you that the email address has been updated. You will also receive an email at this new address from Linode Support confirming this update.

      6. If you enter an invalid email address, the following error message is displayed.

        Error Message for Invalid Email

      Using the API

      You can also use the Linode API to view and update your account’s email address.

      1. Use the View Account endpoint to view your account information including your email address:

        curl -H "Authorization: Bearer $TOKEN" 
        https://api.linode.com/v4/account
        
      2. An example of the output:

          
        {
          "active_promotions": [
            {
              "credit_monthly_cap": "10.00",
              "credit_remaining": "50.00",
              "description": "Receive up to $10 off your services every month for 6 months! Unused credits will expire once this promotion period ends.",
              "expire_dt": "2018-01-31T23:59:59",
              "image_url": "https://linode.com/10_a_month_promotion.svg",
              "summary": "$10 off your Linode a month!",
              "this_month_credit_remaining": "10.00"
            }
          ],
          "active_since": "2018-01-01T00:01:01",
          "address_1": "123 Main Street",
          "address_2": "Suite A",
          "balance": 200,
          "balance_uninvoiced": 145,
          "capabilities": [],
          "city": "Philadelphia",
          "credit_card": {
            "last_four": 1111,
            "expiry": "11/2022"
          },
          "company": "Linode LLC",
          "country": "US",
          "email": "[email protected]",
          "first_name": "John",
          "last_name": "Smith",
          "phone": "215-555-1212",
          "state": "Pennsylvania",
          "tax_id": "ATU99999999",
          "euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71",
          "zip": 19102
        }
        
        
      3. To update your email address, use the Update Account endpoint:

        curl -H "Content-Type: application/json" 
        -H "Authorization: Bearer $TOKEN" 
        -X PUT -d '{
        "email": "[email protected]"
        }
        }' 
        https://api.linode.com/v4/account
        
      4. The output will be mostly the same, but this time, the email field will be updated with your new email address:

          
        {
          "active_promotions": [
            {
              "credit_monthly_cap": "10.00",
              "credit_remaining": "50.00",
              "description": "Receive up to $10 off your services every month for 6 months! Unused credits will expire once this promotion period ends.",
              "expire_dt": "2018-01-31T23:59:59",
              "image_url": "https://linode.com/10_a_month_promotion.svg",
              "summary": "$10 off your Linode a month!",
              "this_month_credit_remaining": "10.00"
            }
          ],
          "active_since": "2018-01-01T00:01:01",
          "address_1": "123 Main Street",
          "address_2": "Suite A",
          "balance": 200,
          "balance_uninvoiced": 145,
          "capabilities": [],
          "city": "Philadelphia",
          "credit_card": {
            "last_four": 1111,
            "expiry": "11/2022"
          },
          "company": "Linode LLC",
          "country": "US",
          "email": "[email protected]",
          "first_name": "John",
          "last_name": "Smith",
          "phone": "215-555-1212",
          "state": "Pennsylvania",
          "tax_id": "ATU99999999",
          "euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71",
          "zip": 19102
        }
        
        

      This guide is published under a CC BY-ND 4.0 license.



      Source link

      How To Change Redis’s Configuration from the Command Line


      Introduction

      Redis is an open-source, in-memory key-value data store. Redis has several commands that allow you to make changes to the Redis server’s configuration settings on the fly. This tutorial will go over some of these commands, and also explain how to make these configuration changes permanent.

      How To Use This Guide
      This guide is written as a cheat sheet with self-contained examples. We encourage you to jump to any section that is relevant to the task you’re trying to complete.

      The commands shown in this guide were tested on an Ubuntu 18.04 server running Redis version 4.0.9. To set up a similar environment, you can follow Step 1 of our guide on How To Install and Secure Redis on Ubuntu 18.04. We will demonstrate how these commands behave by running them with redis-cli, the Redis command line interface. Note that if you’re using a different Redis interface — Redli, for example — the exact output of certain commands may differ.

      Be aware that managed Redis databases typically do not allow users to alter the configuration file. If you’re working with a Managed Database from DigitalOcean, the commands outlined in this guide will result in errors.

      Changing Redis’s Configuration

      The commands outlined in this section will only alter the Redis server’s behavior for the duration of the current session, or until you run config rewrite which will make them permanent. You can alter the Redis configuration file directly by opening and editing it with your preferred text editor. For example, you can use nano to do so:

      • sudo nano /etc/redis/redis.conf

      Warning: The config set command is considered dangerous. By changing your Redis configuration file, it’s possible that you will cause your Redis server to behave in unexpected or undesirable ways. We recommend that you only run the config set command if you are testing out its behavior or you’re absolutely certain that you want to make changes to your Redis configuration.

      It may be in your interest to rename this command to something with a lower likelihood of being run accidentally.

      config set allows you to reconfigure Redis at runtime without having to restart the service. It uses the following syntax:

      • config set parameter value

      For example, if you wanted to change the name of the database dump file Redis will produce after you run a save command, you might run a command like the following:

      • config set "dbfilename" "new_file.rdb"

      If the configuration change is valid, the command will return OK. Otherwise it will return an error.

      Note: Not every parameter in the redis.conf file can be changed with a config set operation. For example, you cannot change the authentication password defined by the requirepass parameter.

      Making Configuration Changes Permanent

      config set does not permanently alter the Redis instance’s configuration file; it only changes Redis’s behavior at runtime. To edit redis.conf after running a config-set command and make the current session’s configuration permanent, run config rewrite:

      This command does its best to preserve the comments and overall structure of the original redis.conf file, with only minimal changes to match the settings currently used by the server.

      Like config set, if the rewrite is successful config rewrite will return OK.

      Checking Redis’s Configuration

      To read the current configuration parameters of a Redis server, run the config get command. config get takes a single argument, which can be either an exact match of a parameter used in redis.conf or a glob pattern. For example:

      Depending on your Redis configuration, this command might return:

      Output

      1) "repl-ping-slave-period" 2) "10" 3) "repl-timeout" 4) "60" 5) "repl-backlog-size" 6) "1048576" 7) "repl-backlog-ttl" 8) "3600" 9) "repl-diskless-sync-delay" 10) "5" 11) "repl-disable-tcp-nodelay" 12) "no" 13) "repl-diskless-sync" 14) "no"

      You can also return all of the configuration parameters supported by config set by running config get *.

      Conclusion

      This guide details the redis-cli commands used to make changes to a Redis server’s configuration file on the fly. If there are other related commands, arguments, or procedures you’d like to see outlined in this guide, please ask or make suggestions in the comments below.

      For more information on Redis commands, see our tutorial series on How to Manage a Redis Database.



      Source link