zoukankan      html  css  js  c++  java
  • ubuntu日常操作

    工作用电脑将会切换到ubuntu上了,记录下ubuntu常用操作。

    ===升级到php5.4===

    For Ubuntu 11.10/12.04:
    sudo add-apt-repository ppa:ondrej/php5
    sudo apt-get update
    sudo apt-get install php5
    For Ubuntu 10.04 LTS, run the following commands (Thanks to Ivan Castellanos for the extra tip):
    
    sudo echo "deb http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
    sudo echo "deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C
    sudo apt-get update
    sudo apt-get install php5
    You can check if PHP 5.4.x is successfully installed with this command:
    
    php5 -v

    http://www.zimbio.com/Ubuntu+Linux/articles/D_AsJR2qAL6/How+Upgrade+PHP+5+4+Ubuntu

    ===开启ubuntu的root帐号===

    $ sudo passwd root
    [sudo] password for ramesh:
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully

    http://www.thegeekstuff.com/2009/09/ubuntu-tips-how-to-login-using-su-command-su-gives-authentication-failure-error-message/

    ===安装SSH连接服务===

    sudo apt-get install openssh-server

    https://help.ubuntu.com/10.04/serverguide/openssh-server.html

    ===apache卸载、nginx和php安装===

    http://cc.ecjtu.net/posts/php-5-4-Nginx-ubuntu-make-install php交互命令行:http://phpsh.org/

  • 相关阅读:
    Qt学习之路1---软件下载安装及工程简介
    c++之五谷杂粮---3
    c++之五谷杂粮---2
    隐式类型转换
    运算时的数据类型提升
    c++之五谷杂粮---1
    RSYNC--数据迁移、备份
    microsoft .netframework Available Source Code Components
    查看一个文件系统所在的卷组方法
    IE7/8浏览器都不能显示PNG格式图片
  • 原文地址:https://www.cnblogs.com/vento/p/2858161.html
Copyright © 2011-2022 走看看