Linux 下安装 Chrome 和 Firefox Flash 插件
系统环境:
- x86_64 位
安装 Chrome 浏览器
- 添加源:
Fedora下,编辑 /etc/yum.repos.d/google-chrome.repo
添加以下内容:
[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Linux 下编译安装 Apache
系统环境:
- ContOS 6.5 x86_64
安装环境依赖
# yum install gcc gcc-c++ pcre-devel zlib-devel -y
创建 www 用户
# groupadd www
# useradd -g www -s /sbin/nologin -M www
Linux 下 YUM 安装 NGiNX
系统环境:
- CentOS 6.4 x86_64
- Fedora 20 X86_64
Fedora 20 源中已经有了NGiNX的源,直接可以使用 yum install nginx
进行安装。
以下为 CentOS 下安装 PHP 方法:
添加 nginx 源
# vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
Linux 下 YUM 安装 PHP 5.5
系统环境:
- CentOS 6.4 x86_64
- Fedora 20 x86_64
Fedora 20 源中已经有了PHP的源,直接可以使用以下命令安装即可:
# yum install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt
Android Root
系统环境:
- "takju" for Galaxy Nexus "maguro"
- Android 4.3 "JWR66Y"
- adb v1.0.31
- Fedora 20
如果你是非 Linux 系统,只要有相应系统的 adb 和 fastboot 此方法同样适用, 当然 Windows / Mac OS X 系统下有一票的一键 root 工具。
MySQL(Percona Server) 5.6 主从复制
系统环境:
- CentOS 6.5 x86_64
- MySQL(Percona Server) 5.6.15
- 主库:192.168.2.21
- 从库:192.168.2.22
例如我们同步的数据库为:test。 如果需要同步多个数据库下面会有说明。
如果你未安装 MySQL 或 Percona Server 请查看 Linux 下编译安装 MySQL(Percona Server) 5.6 或 Linux 下 YUM 安装 Percona Server 5.6。
CentOS下编译Linux内核
安装依赖
# yum install gcc make ncurses ncurses-devel perl
# yum update
下载内核源码
# cd /tmp
# wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.9.tar.xz
# xz -d linux-3.9.tar.xz
# tar xf linux-3.9.tar -C /usr/src/
VirtualBox Clone 网络问题
- 问题1:Device eth0 has different MAC address than expected.
- 问题2:Device does not seem to be present.
- 问题3:Determining if ip address is already in use for device eth0.
- 问题4:虚拟机可以 ping 通外网 IP ,但是 ping 不通局域网 IP.
系统环境:
rc.local 自启动
如何将自己写的一些脚本可以在系统启动时自动运行?
1) 给 /etc/rc.d/rc.local
文件添加可执行权限:
# chmod +x /etc/rc.d/rc.local
2) 编辑 /etc/rc.d/rc.local
添加想自动运行的脚本:
3) 重启
Linux 下安装 Eclipse PHP集成开发环境
JDK 环境
- openjdk 1.7.0 / SUN JDK 1.7.0
安装 Eclipse Juno
到 http://www.eclipse.org/downloads/?osType=linux 下载 Eclipse Classic 4.2.2 (Linux 64 Bit)