`
bluedusk
  • 浏览: 263829 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
使用apt-get的方法安装php无法安装补丁php-fpm,所以只好尝试编译安装, 首先下载解压并打补丁 wget http://php-fpm.org/downloads/php-5.2.13-fpm-0.5.14.diff.gz wget http://mirrors.sohu.com/php/php-5.2.13.tar.gz tar zxvf php-5.2.13.tar.gz gzip -cd php-5.2.13-fpm-0.5.14.diff.gz | patch -d php-5.2.13 -p1 编译的参数./configure --prefix=/usr/loc ...
以前老版本 Zend Optimizer 的安装方法是运行安装脚本 ./install.sh,新的Zend Optimizer 3.3.9没有安装脚本,只能按照以下方法安装。 1. 下载文件源文件:x86:wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
转一个流传较广的文,不一定完全准确,作为参考。 Linux 上配置 Nginx + PHP5 FastCGI Nginx是俄罗斯人编写的十分轻量级的 HTTP服务器,以事件驱动的方式编写,所以有非常好的性能,同时也是一个非常高效的反向代理、负载平衡。其 ...
1.安装PHP程序 apt-get install php5-cgiapt-get install php5-cli apt-get install php5 2.关于spawn-fcg 网上很多文章里写到php-cgi需要lighttpd里面的spawn-fcgi,现在Ubuntu10里面有spawn-fcgi所以可以直接安装:apt-get install spawn-fcgi, 目前测试没有安装这个,直接用PHP的fastcgi启动; 3.修改配置文件/etc/php5/cgi/php.ini cgi.fix_pathinfo=1 4.配置etc/sites-enable ...
Ubuntu 9.10(karmic) 升级源(sources.list) 备份软件源: sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 编辑软件源: sudo gedit /etc/apt/sources.list 更新软件源: sudo apt-get update #—– contents of sources.list  —————————————————————# #传说中的中国科技大学 5M/sdeb http://debian.ustc.edu.cn/ubuntu/ karmic main ...
  apt-get install mysql-server apt-get install mysql-client sudo netstat -tap | grep mysql 查看mysql监听端口 mysql -u -p登陆 show databases; 安装phpMyadmin  apt-get install phpMyadmin 将phpMyadminl链接到网站根目录 sudo ln -s /usr/share/phpmyadmin/ /home/zd/wwwroot/ http://localhost/phpMyadmin/index.php访问phpM ...
Ubuntu下安装Nginx+Mysql+PHP日志   环境:Ubuntu10.4   1. Nginx   安装   首先升级Ubuntu程序包  apt-get update 安装Nginx  apt-get install nginx 运行Nginx  /etc/init.d/nginx 查看进程 ps -A | grep nginx 若端口被占用可查看  netstat -antup 访问localhost可以看到nginx主页 安装完成   配置     2. PHP        

Ubuntu命令

查看端口占用 netstat -antup
web server避免一些不必要的麻烦,可以把apache和php的版本信息不显示 隐藏 Apache 版本信息 /etc/apache2/apache2.conf 或 /etc/httpd/conf/httpd.conf ServerTokens ProductOnly ServerSignature Off 重启 apache 现在 http 头里面只看到: Server: Apache ===================== nginx   #vi nginx.conf 在http 加上 server_tokens off; 如下: http { ……省 ...
  我的安装测试环境是: Windows XP Nginx/Windows 0.8.40 PHP 5.2.9-1 步骤如下: 1.配置PHP.ini  cgi.fix_pathinfo=1 [Zend] zend_extension_manager.optimizer_ts="E:\Zend\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0" zend_extension_ts="E:\Zend\ZendOptimizer-3.3.0\lib\ZendExtensionManager ...
NAT方式在grub中把ipv6禁用了也不管用; 只好改为Bridge方式连接;
  注意使用sudo执行命令   安装自带软件 使用apt-get install命令  ubuntu默认不能使用ssh链接要开启sudo apt-get openssh-server openssh-client;如果找不到软件包则需要先 sudo apt-get update;  下载软件使用 wget 命令   没有make命令 需要安装build-essential  安装prec支持 安装openssl
1. 首先要明白什么是ssh? 可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。 . 2. 开启ubuntu上的ssh功能 先安装,安装后就自动开启了. sudo apt-get install openssh-server openssh-client . 3. 安装secureCRT . 4. 查看ubuntu的ip ifconfig(注意是ifconfig,不是windows上的ipconfig) . 5. 连接 secureCRT => Quick Connect, 连接ubuntu, 输入ubun ...
要注意的是,如果配置了主域名指向子目录; 下面的discuz静态化就作为独立主机来处理(见discuz帮助)   # .htaccess main domain to subdirectory redirect # Copy and paste the following code into the .htaccess file # in the public_html folder of your hosting account # make the changes to the file according to the instructions. # Do not chang ...
常看到死锁的问题,一般都是KILL进程,但如果不查出引起死锁的原因,死锁会时常发生可以通过查找引起死锁的的操作,就可以方便的解决死锁,现将日常解决问题的方法总结,也许对大家有帮助1\死锁发生时,通过如下语法,查询出引起 ...
Global site tag (gtag.js) - Google Analytics