Category Archives : vps

Home  /  vps

18 commands to monitor network bandwidth on Linux server

Network monitoring on Linux This post mentions some linux command line tools that can be used to monitor the network usage. These tools monitor the traffic flowing through network interfaces and measure the speed at which data is currently being transferred. Incoming and outgoing traffic is shown separately. Some of…

How to install latest PHP 5.4.x on Ubuntu 12.04 LTS

1. Add this package-repository to your system. If Ubuntu says that you need to download a key first, then follow the instructions given in the notice. sudo add-apt-repository ppa:ondrej/php5-oldstable If you get an error message now, then please do an update first and install the python-software-properties, that need to be…

How To Install and Use Memcache on Ubuntu 12.04

About Memcache Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. Once the data is requested again, memcache speeds…

在Linux中为非SSH用户配置SFTP环境

在某些环境中,系统管理员想要允许极少数用户在可以传输文件到Linux机器中,但是不允许使用 SSH。要实现这一目的,我们可以使用SFTP,并为其构建chroot环境。 SFTP & chroot背景: SFTP是指SSH文件传输协议(SSH File Transfer protocol)或安全文件传输协议(Secure File Transfer Protocol),它提供了可信数据流下的文件访问、文件传输以及文件管理功能。当我们为SFTP配置chroot环境后,只有被许可的用户可以访问,并被限制到他们的主目录中,换言之:被许可的用户将处于牢笼环境中,在此环境中它们甚至不能切换它们的目录。 在本文中,我们将配置Ubuntu 12.04.5 LTS中的SFTP Chroot环境。我们开启一个用户帐号‘Guest’,该用户将被允许在Linux机器上传输文件,但没有ssh访问权限。 步骤:1 创建组 $ sudo groupadd  sftp_users 步骤:2 分配附属组(sftp_users)给用户 如果用户在系统上不存在,使用以下命令创建( 这里给用户指定了一个不能登录的 shell,以防止通过 ssh 登录): $ sudo useradd  -G sftp_users  -s /bin/false  guest $ sudo passwd guest 对于已经存在的用户,使用以下usermod命令进行修改: $ sudo usermod –G sftp_users  -s /bin/false  guest 注意:如果你想要修改用户的默认主目录,那么可以在useradd和usermod命令中使用‘-d’选项,并设置合适的权限。 步骤:3 现在编辑配置文件 “/etc/ssh/sshd_config” $ sudo vi /etc/ssh/sshd_config  #comment out the below line and add a line like below #Subsystem sftp /usr/libexec/openssh/sftp-server   Subsystem sftp internal-sftp # add Below lines  at the end of file Match Group sftp_users…

国内外各种建站免费面板和一键包汇总

面板类: 国外: VestaCP:http://vestacp.com/ (目前最为推荐的面板,自带中文) Kloxo-MR:https://github.com/mustafaramadhan/kloxo/ (7.0真的很强大,很好看,很实用,有中文包) Webmin/Virtualmin:http://www.webmin.com/virtualmin.html (很稳定,很安全,自带中文) Ispconfig:https://github.com/dclardy64/ISPConfig-3-Debian-Installer (官网安装我都没看懂,这个网址是一键安装的) Webuzo:http://www.webuzo.com/downloads (个人用还是不错的) centos webpanel:http://centos-webpanel.com/ (据说比较有发展前途) Froxlor:http://www.froxlor.org/ (很轻量的,适应各种环境) Ajenti:http://ajenti.org/ (自带中文) i-MSCP:http://i-mscp.net/  (简单易用) zPanel(sentora):http://www.zpanelcp.com/  (支持win) AlternC:https://alternc.org/ (简单) 国内: http://amh.sh/ (4.2版免费) http://www.wdlinux.cn/bbs/ (简单易用,近来爆出不少严重安全漏洞) http://www.kanglesoft.com/ (全能空间) http://www.zijidelu.org/ (支持freeBSD) 一键包: 国外: http://centminmod.com/ (据说很适合wordpress) http://tuxlite.com/ https://github.com/Xeoncross/lowendscript  (lowendscript演变来的) https://github.com/maxexcloo/Minimal https://github.com/KnightSwarm/Minstall https://github.com/mikegioia/Debian-Server 国内: http://lnmp.org/ (用的人很多,适应性很强) http://teddysun.com/lamp (很好用的LAMP一键包) http://teddysun.com/lamp-yum (适合小内存≥64M的LAMP) http://bbs.aliyun.com/read/151729.html (阿里云论坛看到的)…

A Basic MySQL Tutorial

September 27, 2015 No Comments

About MySQL MySQL is an open source database management software that helps users store, organize, and retrieve data. It is a very powerful program with a lot of flexibility—this tutorial will provide the simplest introduction to MySQL How to Install MySQL on Ubuntu and CentOS If you don’t have MySQL…

How To Install phpMyAdmin on a LEMP server

About phpMyAdmin phpMyAdmin is a free software to work with MySQL on the web—it provides a convenient visual front end to the capabilities of MySQL. Setup Prior to installing phpMyAdmin, be sure that you have LEMP installed on your VPS. If you do not, you can see how to do…

How To Set Up vsftpd on Ubuntu 12.04

About vsftpd Warning: FTP is inherently insecure. If you must use FTP, consider securing your FTP connection with SSL/TLS. Otherwise, it is best to use SFTP, a secure alternative to FTP. The first two letters of vsftpd stand for “very secure” and the program was built to have strongest protection…

How To Create a SSL Certificate on nginx for Ubuntu 12.04

About Self-Signed Certificates A SSL certificate is a way to encrypt a site’s information and create a more secure connection. Additionally, the certificate can show the virtual private erver’s identification information to site visitors. Certificate Authorities can issue SSL certificates that verify the server’s details while a self-signed certificate has…

How To Install WordPress with nginx on Ubuntu 12.04

About WordPress Wordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality. Step One—Prerequisites! This tutorial…