Author: Oxford

1.修改网卡配置 编辑:vi /etc/sysconfig/network-scripts/ifcfg-eth0  DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别对应静态指定的 ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址 BROADCAST=192.168.0.255 #对应的子网广播地址 HWADDR=00:07:E9:05:E8:B4 #对应的网卡物理地址  IPADDR=12.168.0.33 #如果设置网卡获得 ip地址的方式为静态指定,此字段就指定了网卡对应的ip地址 NETMASK=255.255.255.0 #网卡对应的网络掩码 NETWORK=192.168.0.0 #网卡对应的网络地址 2.修改网关配置  编辑:vi /etc/sysconfig/network 修改后如下:   NETWORKING=yes(表示系统是否使用网络,一般设置为yes。如果设为no,则不能使用网络,而且很多系统服务程序将无法启动) HOSTNAME=centos(设置本机的主机名,这里设置的主机名要和/etc/hosts中设置的主机名对应) GATEWAY=192.168.0.1(设置本机连接的网关的IP地址。) 我在修改这里打开编辑时前三项已经默认有了所以只增加了GATEWAY 3.修改DNS 配置 编辑:vi /etc/resolv.conf 修改后如下:  nameserver 即是DNS服务器IP地址,第一个是首选,第二个是备用。 4.重启网络服务   执行命令:   service network restart  或 /etc/init.d/network restart

Read More

用yun配置Centos Centos 里的 yum 在线安装很慢.以下是替换为中国CentOS镜像服务器!中国官方镜像网站: http://centos.ustc.edu.cn//* 使用说明 */ cd /etc/yum.repos.d[进入yum.repos.d目录] mv CentOS-Base.repo CentOS-Base.repo.save[修改源文件名称备份] wget http://centos.ustc.edu.cn/CentOS-Base.repo.5[下载] mv CentOS-Base.repo.5 CentOS-Base.repo[下载后的文件更名] 1. 更新系统内核到最新. yum -y update 系统更新后,如果yum安装时提示错误信息,请执行以下命令修复. rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* 2. 安装Apahce, PHP, Mysql, 以及php连接mysql库组件 复制代码 代码如下:yum -y install httpd php mysql mysql-server php-mysql //安装mysql扩展 yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql //安装php的扩展 yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc //安装apache扩展 yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql 一次性粘贴安装: yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql 3. 启动服务配置 复制代码 代码如下:/sbin/chkconfig httpd on [设置apache为自启动] /sbin/chkconfig –-add mysqld [mysql服务]…

Read More

建站的都知道cPanel、DirectAdmin等强大的主机控制面板,但他们都是收费的,而且收取的费用还不低。免费的Kloxo的大家可能也比较熟悉的。今天给大家介绍的是ZPanel,这是个功能不错,且开源免费的虚拟主机在线管理系统。 现在的VPS价格不高,很多朋友都开始玩VPS了。买了VPS后最重要的就是装WEB环境了,尽管LNMP一键安装包已经很是强大,但还是不是人喜欢有控制面板的,这样方便管理。国人也有开发相关的软件,不过今天的重点是ZPanel。 ZPanel是典型的免费虚拟主机控制面板,支持安装在Windows,Linux,UNIX和MacOSX等多个操作系统上。其控制面板简洁易 用,用户可以创建和管理MySQL数据库,电子邮件信箱等,也可以在一台服务器绑定多个域名。且ZPanel能与 MySQL,hMailServer(Windows平台),Postfix(Linux平台等),Filezilla(Windows平台)或 ProFTPd(Linux平台等)等多个软件完美兼容,默认情况下安装了Apache, PHP, Postfix等软件。 下面来看看ZPanel的安装吧。目前,ZPanel最新版本是6.1.1. 在Ubuntu Linux上安装ZPanelwget http://sourceforge.net/projects/zpanelcp/files/releases/6.1.1/zpanel-6.1.1.tar.gzmkdir /etc/zpaneltar -zxvf zpanel-6.1.1.tar.gz -C /etc/zpanel/chmod +x /etc/zpanel/lib/dev/zpinstall_ubuntu.sh/etc/zpanel/lib/dev/zpinstall_ubuntu.sh 在CentOS Linux上安装ZPanel wget http://sourceforge.net/projects/zpanelcp/files/releases/6.1.1/zpanel-6.1.1.tar.gzmkdir /etc/zpaneltar -zxvf zpanel-6.1.1.tar.gz -C /etc/zpanel/chmod +x /etc/zpanel/lib/dev/zpinstall_centos.sh/etc/zpanel/lib/dev/zpinstall_centos.sh WIN主机商的教材去ZPanel官网看吧。 ZPanel官方网址:http://www.zpanelcp.com/ 安装好后,默认没有文件管理器,只能在后台添加FTP帐号,然后再通过FTP软件登录管理文件,有些不方便,既然用了控制面板,何不把把文件管理器也添加进去呢。 cd /etc/zpanelwget http://downloads.sourceforge.net/project/zpanelcp/modules/zp5/advanced_file_manager/Advanced_Manager.zipunzip Advanced_Manager.zipmv file appsmv afilemanager modules/storagevi modules/storage/afilemanager/index.php 第六行改成 $url = “/apps/file/user.php?word=/var/zpanel/hostdata/”; 上面只是ZPanel的一个插件,它还有其他实用的插件及中文翻译,当然你如果不喜欢Apache也可以自己配置Nginx替换,这些都去其官方维基及论坛学习吧。 项目地址:http://zpanelcp.sourceforge.net/

Read More

第一步:下载zpanelx-centos-6-beta.tar.gz安装程序 登录到您的服务器,要开始安装zPanel ssh [email protected]_ip_address VPS登录成功后,就可以下载zPanel安装文件: wget http://www.zvps.co.uk/sites/default/files/downloads/zpanelx-centos-6-beta.tar.gz 下载完成后,就可能解压文件了: tar -xf zpanelx-centos-6-beta.tar.gz 随后我们需要可执行安装脚本: chmod +x installer.sh.x 之前在运行安装脚本之前,我们需要使用yum安装一个动态连接器: yum install ld-linux.so.2 最后,就可能安装zPanel,执行自动化脚本: ./installer.sh.x zPanel安装完成后,服务器将重新启动。 第二步:开始运行zPanel安装程序 您的服务器重新启动后,你可以找到您的域名或IP地址,在浏览器中访问zPanel。 你的登录密码是: username: zadminpassword: password 当你登录成功后,可能点击“Account Information”更改密码

Read More

查看文章索引请通过http://www.cnblogs.com/seesea125/archive/2012/04/17/2453256.html 第一次使用VmWare和CentOS6,中间遇到不少问题,记性不好,还是记下来留作以后查看,也方便遇到这些问题的朋友能做个参考:),我的操作系统是WIN7旗舰版,VMware版本是VMware-workstation-full-7.1.0,CentOS的版本是CentOS-6.0- i386,32位的(注意如果Windows本身是32位的,CentOS版本也应该选择32位的,否则会提示不支持,也可能装上也能用,但为了不引起不必要的麻烦,就装32位的了) 一 先安装VMware。 双击安装文件出现欢迎界面: 然后点Next: 这里选择Typical,继续Next,接下来选择安装目的路径,直到完成即可,中间有一步要输入序列号,网上搜一个即可,比较简单,就不介绍了,安装后要重启电脑。 二 VMware中安装CentOS 重启后打开安装好的VMware,选择File-New-Virtual Machine,如图: 这里选择Custom,Next: 选择Workstation6.5-7.x, Next: 这里选择第三项,以后安装,方便进行配置。选择I will install the operating system later,Next: 这里选择Linux,Version里选择CentOS,因为是32位的,所以不要选择CentOS-64bit,next: 镜像文件存放路径的选择,这里输入虚拟机名称和安装路径,Next: 选择给虚拟机分配的cpu核的数量,如果为虚拟机选择的cpu数超过本机实际cpu数量,vmware会给出警告。Next: 虚拟内存分配,一般选默认的1024MB就行,Next: 这里是网络类型分配,网络类型分配分为三种,Bridge,NAT和Host-Only,大概区别是 1 BRIDGE:相当于主机和虚拟机连接到同一个hub上,虚拟机要和主机配置到同一网段上 2 NAT:使用vmnet8,主机开启必要的vmware服务,如vmvare dhcp,虚拟机设置成dhcp方式即可,当然也可以手工设置成vmnet1同一网段,比较麻烦 3 HOST-ONLY:使用vmnet1,直接和主机互联,可以使用ifconfig查看配置情况 这里选择NAT,Next: 选择io控制器类型,选择默认的即可,Next: 选择虚拟硬盘类型,这里选择创建一个,Next: 选择要创建的磁盘的类型,选择默认的即可,Next: 选择磁盘空间大小,默认即可 设置虚拟镜像文件名称,默认即可,Next: 创建完成,确认虚拟机信息,点finish即可。 接下来在VMware上刚才创建的虚拟机上,右键选择Settings 点击”CD/DVD(IDE)”,打开虚拟机光盘设置页面,点击”Use ISO image file”, 再点击”Browse”,选择待安装镜像ISO文件。 然后点击”Power on this virtual machine“,启动虚拟机。 这里选择第二个,然后回车,开始安装 检查DISC的,选择SKIP就可以 选择安装语言,这里选简体中文 选择键盘,选择美国,Next 选择默认即可,下一步 这里是格式化刚才设定的虚拟磁盘,放心选择“重新初始化所有”即可,其他文件不会丢失 输入主机名,下一步: 选择时区,默认即可 输入密码,下一步: 然后出现 这里选择Minimal,选择现在自定义,添加一些必要的组件,注意如果选择以后自定义,虚拟机可能因为缺少组件上不了网,虽然后期可设置,但对于菜鸟来说,想配置好有点麻烦,因此这里选择自定义,添加一些必要的组件。 Perl是必选的,否则无法安装VMWare Tools,system managerment tools,network tools必选的,否则无法上网,其他的看着选吧。 大功告成

Read More

By Steve Holland and Catherine Bremer WASHINGTON/PARIS (Reuters) – The United States made clear on Friday that it would punish Syrian President Bashar al-Assad for the “brutal and flagrant” chemical weapons attack that it says killed more than 1,400 people in Damascus last week. “We cannot accept a world where women and children and innocent civilians are gassed on a terrible scale,” President Barack Obama told reporters at the White House. He said the United States was still in the planning process for a “limited, narrow” military response that would not involve “boots on the ground” or be open-ended. He…

Read More

This stylish apartment in Germany is the visualization of art director Alexander Zenzura. It takes a seemingly standard-sized apartment and transforms it into a grand space. There are many elements in this space, from the furnishings to the layout and room details that make this space seem large and open. Upon first look, the open concept living space looks as if it was from a family size home rather than an apartment. The main area is composed of the living room, dining area, and the kitchen. Even though the patio is in a separate space, the openness of the…

Read More

Taiwan actor Eddie Peng will play the Chinese folk hero Wong Fei Hung in the upcoming film in “Rise of the Legend”, the first Chinese film in almost two decades to feature the character. BEIJING: “Unbeatable” star Eddie Peng will follow in the footsteps of action heroes Jet Li as well as Vincent Chiu and play the Chinese folk hero Wong Fei Hung in the upcoming film “Rise of the Legend”, reported Chinese media. The 31-year-old actor has been hard at work preparing for the role recently, training ten hours a day under a martial arts master in the…

Read More

Alright, let’s face it. Social media is a communication tycoon in the world we live in today. The concept of ‘paid advertising’ has lost its depth on account of the alternative; things like Twitter, Facebook and LinkedIn. The very concept of advertising has changed drastically since the change and evolution of our digital age. Don’t be scared though – social media is perfect for promoting your art and when taking a step-by-step approach, it won’t be overwhelming at all. While most artists see it as a big time consuming monster, when using it to promote you business, using Social…

Read More

Inspiration 101: What makes us inspired and how do we use this inspiration? An idea for a new piece of art can reveal itself at any moment; in the shower, walking the street, watching a movie, reading a book – as artists, inspiration just comes naturally and we usually have more trouble keeping up with the ideas we have to bring to life rather than looking for them. Sometimes, though, the visual artist equivalent of a writer’s block can suddenly keep us from creating anything for a long time. So let’s take a look at what inspiration really is and…

Read More

A whip a chisel to write the spring and autumn, hard things picked up the hammer chisel in wood carving wood carving works creation, wood carving craft perfect. The wood carvings, Chinese wood carving, wood carving wood carving Museum, scroll, Chinese wood carving art exhibition, wood carving wood carving history: ancient Luban craftsman, extraordinary as if done by the spirits, and the creation in technology, wood production process, material selection, design, a blank, repair fine grinding, polishing, etc.. Carving techniques to relief, combined with the use of “deep carving”, “hollow carving”, “hollow double-sided carving”, “half round,” “three,” surface carving “cylindrical…

Read More