`
topzhujia
  • 浏览: 54380 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论
文章列表
Environment:Ubuntu 10.04(Lucid) 改變需要理由,更改只需要方法。所以下面的話只是教你如何更改主機名。 首先,編輯/etc/hostname,把里面的主機名改為你現在想要的主機名。hostname文件就像它的名字一樣,里面只有一句話,更准確的說是一個詞,就是你現在的主機名。比如我的hostname現在是ubuntu,那么cat < /etc/hostname得到的只是ubuntu。我現在想把它改為MySQL-Server,把hostname中的ubuntu直接替換就是了。 然后,編輯/etc/hosts,把其中以前的hostname全部替換成現在的hostnam ...
在默认情况下,MySQL只允许本地连接并不允许远程连接。为什么会这样呢?下面这段话会解决这个问题。 Internally, the server stores privilege information in the grant tables of the mysql database (that is, in the database named mysql). The MySQL server reads the contents of these tables into memory when it starts and bases access-control decisions o ...
Q. How do I change user name (rename user name) or UID under Linux operating system? A. Use the usermod command to change user name under Linux. it modifies the system account files to reflect the changes that are specified on the command line. Syntax is as follows usermod -l login-name old-name Wh ...
You can get a pdf    edition of this article from here <script type="text/javascript"> var MarginLeft = -50; //浮动层离浏览器右侧的距离 var MarginTop = 120; //浮动层离浏览器顶部的距离 var Width = 118; //浮动层宽度 var Heigth= 66; //浮动层高度 //设置浮动层宽、高 function Set() { ...
<style type="text/css"> <!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } H1 { margin-bottom: 0.21cm } H1.western { font-family: "Times New Roman", serif } H1.cjk { font-family: "DejaVu Sans" } H1.ctl { font-family: "DejaVu Sans" } A:link { so-lan ...
     deb http://mirror.switch.ch/ftp/ubuntu/ lucid main multiverse restricted universe     deb http://mirror.switch.ch/ftp/ubuntu/ lucid-backports main multiverse restricted universe     deb http://mirror.switch.ch/ftp/ubuntu/ lucid-proposed main multiverse restricted universe     deb http://mirror.s ...
The PatternLayout is by far the most widely used log4j layout. It formats logging events according to a conversion pattern specified by the user. Conversion patterns are composed of literal text and conversion specifiers. Literal text is output as is. Conversion specifiers consist of the % character ...
As default Ubuntu has no password set for the root user. To gain root access you have to type in your own user password. This is the password you set for the first user while installing Ubuntu. To manually set a password for the root user, type in the following in the shell: sudo passwd After that yo ...
I have some questions about C language. One of them is what t means. As we all know, there are lots of user-defined types such as time_t and size_t in C language. It puzzled me for a long time. However, I am so lucky today. I found a word 'typedef' when I read “C: a reference manual”. I think I sudde ...
下述所有命令在Linux/unix的shell下有效,這里以bash為主。如有出入,以你自己的服務器為准。本文所指的Linux主要指 RHEL/CentOS,unix指的是FreeBSD,這也是服務器中用得最多的版本。 Ctrl + a 切換到命令行開始 這個操作跟Home實現的結果一樣的,但Home在某些unix環境下無法使用,便可以使用這個組合;在Linux下的vim,這個也是有效的;另 外,在windows的許多文件編輯器里,這個也是有效的。 Ctrl + e 切換到命令行末尾 這個操作跟END實現的結果一樣的,但End鍵在某些unix環境下無法使用,便可以使用這個組合;在Linux下的v ...
在 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"> <meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)"> <style type="text/css"> <!--{cps..0}-</style> linux(Ubuntu)下安裝的OpenJDK默認情況下中文的顯示總是有問題 的。我每次打 ...
      总有人装了Ubuntu仍忘不了Windows。我在刚接触linux 的时候也是这样,不过现在好了很多,如果不是必须要用Windows 的时候,我一般都选择进入Ubuntu。为了那些刚使用Ubuntu的人方便进入Windows,也为了以后有人再问我的时候,我可以很轻松明了的回答ta。特意在此记下GRUB2是如何修改默认引导系统的。        在网上Google或Baidu一下,结果会出来很多,我大致看了一下,绝大部分内容雷同,基本都是让你修改/boot/grub/grub.cfg。没错,无论过程怎么样结果都是grub.cfg被修改。但是在这个文件的开头它已经清清楚楚的告诉你:DO ...
    很早以前就发现Java GUI在linux上顯示有問題,english倒沒什么,主要是chinese
电子科技大学源(校园网推荐,快)deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main restricted universe multiversedeb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main restricted universe multiversedeb http://ubuntu.uestc ...
      在Windows下安装软件时,只需运行软件的安装程序(setup、install等)或者用zip等解压缩软件解开即可安装,运行反安装程序(uninstall、unware、“卸载”等)就能把软件清除干净,完全图形化的操作界面,简单到只要用鼠标 ...
Global site tag (gtag.js) - Google Analytics