apache 安裝:http://blog.csdn.net/wplblog/article/details/52172128 編譯安裝 php
mysql安裝:http://www.centoscn.com/CentosServer/www/2014/1023/3990.html yum安裝 html
php安裝:http://www.centoscn.com/CentosServer/www/2014/1023/3990.html 編譯安裝mysql
/softwire/php-5.6.30/configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-apxs2=/usr/local/httpd-2.2.32/bin/apxs --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-jpeg-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/bin --enable-xml --disable-rpath --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-ftp --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-zlib --enable-pdo --with-pdo-mysql
記錄 php安裝擴展redis
phpize安裝mongo擴展sql
一、解壓擴展包並進入 apache
二、執行 phpizevim
三、./configure --with-php-config=/usr/local/php/bin/php-configcentos
四、makeapp
make testcurl
php -m查看php擴展模塊,報錯信息:
可是,這樣作的話,咱們並無使用etc的下的配置文件進行啓動(圖中紅線部分)。
若是但願經過指定的配置文件啓動,須要在啓動時指定配置文件:
這裏咱們先用ctrl+C來終止服務,而後查看redis服務是否終止乾淨了,以後經過設置配置文件來啓動服務:
七、按下ctrl+c後(^C):
八、運行:pstree -p | grep redis 發現redis服務已經被終止乾淨
如今咱們帶上配置文件 /usr/local/etc/redis.conf 運行redis
九、./redis-server /usr/local/redis/etc/redis.conf啓動成功
十、將redis改成後臺啓動(Redis的後臺啓動並運行須要經過配置文件中的參數設置)
vim /usr/local/redis/etc/redis.conf 把daemonize配置項改成yes
十一、以後咱們再次使用配置文件啓動redis-server。
./redis-server /usr/local/redis/etc/redis.conf
十二、能夠看到,redis是後臺啓動了,而且經過ps命令能夠查看到redis正在運行。
ps -ef | grep redis
注意:
redis默認端口爲6379,查看端口是否被佔用netstat -tunpl | grep 6379
客戶端登陸:/usr/local/redis/bin/redis-cli
cenos 7 安裝svn
來源:http://blog.csdn.net/tjcyjd/article/details/41673705
注意:在某個路徑下執行 svn co svn:186.xxx.xxx.xxx/文件名 (拷貝一份線上項目到此路徑)