1234567apt-get install mysql-server apt-get install php5 apt-get install php5-mcrypt apt-get install php5-mysql apt-get install php5-xdebug apt-get install php5-cgi apt-get install nginx 12345678910root@hywd:/etc/nginx/sites-available# service ng...
用NTP实现UBUNTU server的时间同步
创建文件: /etc/cron.daily/ntpdate 内容如下: 1ntpdate ntp.ubuntu.com 给/etc/cron.daily/ntpdate添加可执行权限: 1sudo chmod 755 /etc/cron.daily/ntpdate
...ubuntu server的网络配置
首先,查看本服务器的都有哪些本地网卡接口: 1ifconfig -a | grep eth 另一个可以查看网卡接口信息的程序是lshw 1lshw -class network 以太网接口的逻辑名字(默认是eth0 , eth1 , eth2 ……): 该名称保存在: /etc/udev/rules.d/70-persistent-net.rules 文件中,可以修改对应MAC的网卡的名称。 以太网接口配置: ethtool 是一个可以显示和修改以太网卡配置信息的程序,比如:...
如何在ubuntu中启用SSH服务
一般是选择安装OpenSSH server 。 不废话,直接安装: 1sudo apt-get install openssh-server 查看SSH server正在工作与否: 12ubuntu$ ps -aef | grep sshd root 24114 1 0 15:18 ? 00:00:00 /usr/sbin/sshd 好,现在连接一下本地的SSH服务器看: 1ub...
优化低内存VPS
由于VPS 内存只有512M ,不得不采取一些方法来优化下了。 对于OpenVZ的VPS,由于不支持swap,只能省着点用内存了。 只有Xen的VPS可以,OpenVZ不支持添加swap 《VPS优化之添加swap交换分区》 1、进入一个目录 cd /var/ 2、获取256M的文件块: dd if=/dev/zero of=swapfile bs=1024 count=262144 3、创建swap文件 /sbin/mkswap swapfile 4、激活swap文件 /sbin/s...
vps 编译程序时virtual memory exhausted: Cannot allocate memory错误
http://wiki.vpslink.com/Prevent:_Compiling_Yields_%27Cannot_allocate_memory%27 产生这个错误的原因是 gcc 编译器把整个服务器的物理内存当作目前服务器拥有的内存了,而不是VPS 的内存,因此,当它试图使用大于VPS 限制的大小的内存时,就报上面这个错误了。 12345678910#查看 ulimit -a #设置为比vps限制小的一个值 ulimit -v 60000 #对于 debian 系统: ulimit -m 6...
折腾VPS:LNMP+VSFTPD的搭建
putty.zip 下载 (1.4 MB, 26 次)
VPS 我用的是ubuntu 9.10 server x86的,因为个人对ubuntu 更熟悉一些,至于CentOS,没有折腾过。有时间再折腾吧。 先安装 vsftpd ,这是为了便于传文件,我可以在本地修改好配置文件,然后通过ftp传过去,哈哈。要知道,在VPS上vim 修改东西速度是相当慢的,在本地修改还是快一点。 burst主机不支持远程桌面的,在WIN下用putty登录ssh ,在LINUX下可直接ssh登录。 先安装vsftpd: 如果没有安装 gnome ,pam 一般是没有安装的,等下...
安装vsftpd再次遇到530 login incorrect
发现登录不成功,提示 530 login incorrect 可是明明我用户名和密码都正确,配置也正确啊 123456789root@vps:/etc# ldd /usr/local/sbin/vsftpd libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7f33000) libdl.so.2 => /...
PHP编译出错:error while loading shared libraries: libfreetype.so.6
12/home/soft/php_5_3_fpm/sapi/cli/php: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory make: *** [ext/phar/phar.php] Error 127 12/home/soft/php_5_3_fpm/sapi/cli/php: error while ...
编译安装PHP出错configure: error: GD build test failed.
123456789101112131415161718checking pcre install prefix… no checking whether to enable FTP support… no checking OpenSSL dir for FTP… no checking for GD support… yes checking for the location of libjpeg… /usr/local checking...





近期评论