/swapfilechmod 0600/swapfile
Configure Swappiness
In CentOS, the default value for Swappiness is 60.
Cat/proc/sys/vm/swappinessDo-swap-6
In a Linux system, the use of swap, as well as the proportions used, can be determined by the swappiness parameter. This value is between 0 and 100, and if it is 0, swap is not used, and if it is 100, then the system will be very active in using swap rather than memory. (Remember a long time ago, introduced in de
Digitalocean is a cloud hosting business, with a minimum configuration of 512M memory, 20G SSD, only 5 knives per month. Half a month ago just bought a VPS on this, create droplet when you see the creation of SSH key is a bit ignorant, do not know what it is to do, and then found the solution on the Internet, this article attached the solution, of course, the main purpose is to recommend Digitalocean, attac
manage DigitalOcean water drops from the command line.Install tugboat on Linux
Install tugboat On Debian, Ubuntu, or Linux Mint:
$ Sudo apt-get install ruby-dev
$ Sudo gem install tugboat
Install tugboat on Fedora:
$ Sudo yum install ruby-devel
$ Sudo gem install tugboat
To install tugboat on CentOS, first install or upgrade to the latest Ruby version, because in
DigitalOcean water drops from the command line.
Install tugboat on Linux
Install tugboat On Debian, Ubuntu, or Linux Mint:
$ sudo apt-get install ruby-dev
$ sudo gem install tugboat
Install tugboat on Fedora:
$ sudo yum install ruby-devel
$ sudo gem install tugboat
To install tugboat on CentOS, first install or upgrade to the latest Ruby version, because in
Script
The code is as follows
Copy Code
#!/bin/bash function Installvpn () {echo "Begin to install VPN services";#check Wether VPS Suppot PPP and TunYum Remove-y pptpd PPPIptables--flush postrouting--table
Most VPS sites provide a console interface on the site to facilitate remote VPS operation. But the use of particularly inconvenient, especially in a magical country, open foreign sites are difficult, not to mention also on the site constantly operating. This tutorial records how to use putty to remotely manipulate VPS under Windows systems.
First, the Environment configuration
A CentOS host, I use the
Digitalocean is my favorite VPS service provider and currently has 10 or so Digitalocean VPS servers on hand. After more than three years of Digitalocean, I found Digitalocean a little bit of a trick. For example, if your account is not logged in after a long period of operation, D
Once upon a time, although we in the overseas VPS service providers can also see a variety of large and small businesses, but really can make linode such a high-rich handsome competitive is really not much, this is not at the beginning of the Linode business 512MB memory solution for $20 One months, there are many people scrambling to buy. But since the emergence of Digitalocean, vultr merchants, we see Linode continuous 3 years of change, upgrade con
Although the Digitalocean merchants do not have the Asian data center that we desperately need (the Singapore is not too good), but from the old left contact to the user, as well as the current I also have the machine on the above look, stability is good, The only thing that's not satisfying is that when you create a new VPS project, you don't know whether it's security or any other problem, the root random password is sent to us through the account e
GitHub, a famous project hosting website, joined digitalocean VPs and namecheap this week to provide student benefits! More than 10 products are free of charge! Including a free digitalocean discount code worth $100! And the free. Me domain name and positivessl security certificate from namecheap.
The application process is as follows:
1. You are a college student and have an email address and studen
Warm tip: The 100-dollar coupon must be exchanged within one year, otherwise it will be expired, after the exchange success, to the date of exchange, must be used within one year, otherwise the remaining direct clear zero. Digitalocean has 5$/m,10$/m,20$/m,40$/m,80$/m package, generally used last year is no problem.
Digitalocean is a new VPS in recent years, the performance of its server is relatively stab
Digitalocean LAMP on the Ubuntu 14.04 version of the default MySQL password?
Do not know how to play the password ah. Urgent ...
Reply content:
Digitalocean LAMP on the Ubuntu 14.04 version of the default MySQL password?Do not know how to play the password ah. Urgent ...
Have you ever logged in with SSH? Have you noticed the greeting message after login? If not, now mount to take a look, if boarded
In mainland China, due to some disgusting reasons, Digitalocean official website often appear unable to open, or open after the page abnormal situation, if you are a new registered user, you will even be frightened, a global well-known VPS host website may be like this:My God, the website is so shabby!The real reason is that the official website of Digitalocean loaded many third-party scripts, such as Googl
Do we still remember the last month or so (a little memory loss and a few months of forgetting), and the official updated terms mentioned that the account balance will expire and there were various understandings at that time, for example, if the change term does not expire before last year, the account balance may expire after the change. Regardless of the guesses and interpretations, users with DigitalOcean accounts and with balances in the past few
Although Digitalocean service providers do not have our favorite Asian node room (has been waiting for the opening of the Japanese data center), but its user is also relatively large, in addition to the so-called 100 U.S. dollars aside from the user consumption, in fact, the purchasing power is also relatively large, Because the old left also often encountered a netizen mentioned various in the use of Digitalocean
Because Digitalocean does not find the ability to observe the used traffic, there is a need to know their traffic usage, so installed vnstat.Installation process is very simple, see Baidu Experience, the official homepage and so on.1. After the installation of Vnstat, the direct command vnstat-i Eth0 can see the traffic situation (initially will wait for a period of time to accumulate traffic data)2. Then install vnstat PHP frontend, is actually a var
DigitalOcean-CentOS7-enable MariaDB service, centos7mariadbGossip:
My job has not been smooth recently. I have been in the ACM Team (back in seconds), engaged in php development, O M, and scientific research (visualization). Now I am mainly writing java, most of the things I learned are related to the Web.
When looking for a job, the interviewer looked at a group of Web development projects on my resume and asked me why I chose client development (ma
://stackoverflow.com/questions/7949956/ Why-does-git-diff-on-windows-warn-that-the-terminal-is-not-fully-functional# export term=cygwin no problem. Msys and Cygwin are gadgets for simulating unix/linux environments on Windows .10.mariadb> show Variables like ' collation_% '; Mariadb> show variables like ' character_set_% '; resets collation not UTF8 to utf8mariadb> set collation_database= ' Utf8_general_ci '; mariadb> set collation_server= ' utf8_general_ci '; see if it's all. The default is
CentOS 7 Setup Boot service to add custom system services
Create a service file
Save Directory
Set up boot from
Other commands
1. Create a service file
File path
vim /usr/lib/systemd/system
Service file Content
[Unit]Description=nginx - high performance web serverAfter=network.target remote-fs.target nss-lookup.target[Service]Type=forkingExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confExecReload=/usr/local/
In the previous article, I have recorded the process of installing mysql under CentOS (CentOS for Linux (13)-installation and configuration of Mysql database under CentOS ), however, when we try to back up data in the database or import SQL files to our database, we may encounter Encoding Problems, when installing mysql in windows, we can select the encoding meth
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.