Start mysql and memcached in Linux

Source: Internet
Author: User

 

Start mysql

 

# Cd/usr/local/mysql/support-files/

#./Mysql. server start

 

Start memcached

 

Cd/usr/local/memcached/bin/

./Memcached-d-m 256-u root-l 10.0.20.6-p000011-c 5000-P/usr/local/memcached/memcached1.pid

 

 

Startup options:

 

-D option is to start a daemon,

 

-M indicates the amount of memory allocated to memcache. The unit is MB. Here is 100 MB,

 

-U is the user who runs memcache. You can also use adduser to create a user for memcahed.

 

-L is the IP address of the listening server. The IP address 192.168.11.193 is specified here.

 

-P is the port for memcache listening. I have set 11211 here. Because it is the default port, the-p parameter is not specified.

 

-The "c" option is the maximum number of concurrent connections. The default value is 1024. I have set 256 here, which is based on the load of your server,

 

-P is the pid file for saving Memcache. Here I am saving it in/tmp/memcached. pid

 

From linwang's blog

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.