Tag Archives: linux 2012.02.8 No Comments linux, 学习 Linux一键rsync配置实现文件同步← Continue Reading 数据库同步请点击:数据库同步 主服务器 wget -c http://www.imfeng.com/downforlnmpa/rsync/rsserver.sh chmod +x rsserver.sh ./rsserver.sh 会提示输入 帐号 密码 服务器IP地址 同步服务器IP地址 同步文件路径 然后会自动安装好 同步服务器 ... 2012.02.8 No Comments linux Linux部署Mysql数据库主从同步← Continue Reading 主服务器IP: 250.110.120.119 从服务器IP: 110.120.119.250 1.在主服务器新建一个用户,给从服务器同步使用。 GRANT ALL PRIVILEGES ON *.* TO 'tongbu'@'110.120.119.250.' IDENTIFIED BY'tongbu'; 意思是新建一个用户名为tongbu 密码为tongbu 具有所有操... 2012.01.14 No Comments linux, vps, 学习 Debian配置使用Dotdeb更新源← Continue Reading Debian官方的源一般都以稳定为主,所以里面的软件版本也相对比较低,Dotdeb的源更新速度比较快,而且里面的软件包都是最新稳定版的,所以我使用Debian一般都喜欢加入Dotdeb的源,安装最新的稳定版软件。 根据Dotdeb.org官方的使用说明,对照着英文大概翻译下Dotdeb源的使用方法: 1.根据你使用的Debian的发行版本(lenny/oldstable 或 squeeze/sta... 2012.01.14 No Comments linux, vps CentOS Linux VPS Kloxo/Lxadmin虚拟主机控制面板安装教程← Continue Reading 执行如下命令: wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh sh ./kloxo-installer.sh --type=master 先按提示,然任意建开始安装,后面会有提示,一般输入y,回车就行。 国内主机可能安装要慢点了,因为是在线安装(更新源在国外),使用美国主机的朋友们很快就... 2012.01.14 No Comments linux, vps 重启Apache命令各linux版本← Continue Reading Slackware Linux命令: /etc/rc.d/rc.httpd restart ubuntu、Debian 系统命令: /etc/init.d/apache2 restart Fedora 、Redhat、CentOS系统重启Apache命令: /etc/init.d/httpd restart 或 service httpd restart 2012.01.14 No Comments linux, vps 一键安装VPN(xen或者Linux服务器PPTPD一键安装包)← Continue Reading 这个PPTP一键安装包是由DiaHosting提供的,只能在XEN VPS上安装。 一、在SSH里下载PPTPD.SH wget http://www.diahosting.com/dload/pptpd.sh 二、运行。 sh pptpd.sh 这样,pptp已经完全安装在你的VPS上,快的让人想不到吧。安装完毕后,会显示用户名和密码,你可以记录下来使用,或者用下面的办法修改: ... 2012.01.14 1 Comment linux, vps pdo 安装← Continue Reading wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz tar zxvf PDO_MYSQL-1.0.2.tgz cd PDO_MYSQL-1.0.2 /www/wdlinux/php/bin/phpize ./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-my... 2012.01.14 No Comments linux, vps linux 常用命令整理← Continue Reading rm -rf /xxx 删除目录 tar -zcvf directory.tar.gz directory 除了将目录打包外,同时以gzip 压缩 tar -xzvf file.tar.gz //解压tar.gz 1、*.tar 用 tar –xvf 解压 2、*.gz 用 gzip -d或者gunzip 解压 3、*.tar.gz和*.tgz 用 tar –xzf 解压 4、*.bz...