随笔分类 -  00.Unix/Linux

该文被密码保护。
posted @ 2018-05-25 16:59 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:ref: https://blog.csdn.net/smstong/article/details/448029893.1 执行CentOS7 最小安装去官网下载CentOS-7.0-1406-x86_64-Minimal.iso,然后刻录光盘,安装之。安装完成后执行yum update更新系统。 阅读全文
posted @ 2018-04-23 12:54 庚武 阅读(761) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-04-06 22:42 庚武 阅读(5) 评论(0) 推荐(0) 编辑
摘要:from: 《The Linux Programming Interface》P1355 阅读全文
posted @ 2018-04-06 11:39 庚武 阅读(552) 评论(0) 推荐(0) 编辑
摘要:参考: http://blog.51cto.com/wzlinux/1731324 http://blog.csdn.net/ztynet/article/details/54952425 一、检查CPU是否支持虚拟化。(在主板BIOS中开启CPU的VirtualizationTechnology) # grep -E -o 'vmx|svm' /proc/cpuinfo 二、基础环境配... 阅读全文
posted @ 2018-03-17 08:47 庚武 阅读(1389) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/swimming_in_it_/article/details/53320141http://blog.csdn.net/wickedglory/article/details/53264559首先检查 KVM host(宿主机/母机)上的kvm_intel 阅读全文
posted @ 2018-03-17 08:46 庚武 阅读(4289) 评论(1) 推荐(0) 编辑
摘要:在服务器上安装VirtualBox并配置转发: VirtualBox网络连接方式,选择默认的NAT连接方式。 在下面有个 “端口转发” 按钮,点击配置主机到虚拟机的端口映射。 ref: http://blog.sina.com.cn/s/blog_484d87770102uxi6.html 配置好之 阅读全文
posted @ 2018-03-11 19:01 庚武 阅读(800) 评论(0) 推荐(0) 编辑
摘要:ref: http://blog.csdn.net/pingnanlee/article/details/8812520 1. yum -y install subversion 2. svnadmin create /opt/svn-repo/project1 3. [root@localhost conf]# ls authz passwd svnserve.conf (1)svnse... 阅读全文
posted @ 2017-11-30 11:51 庚武 阅读(401) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-05-23 12:28 庚武 阅读(0) 评论(0) 推荐(0) 编辑
摘要:[root@localhost network-scripts]# pwd /etc/sysconfig/network-scripts [root@localhost network-scripts]# cat ifcfg-enp0s3 TYPE=Ethernet BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no ... 阅读全文
posted @ 2017-05-11 16:32 庚武 阅读(178) 评论(0) 推荐(0) 编辑
摘要:PS1='\[\e[7;46m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '新的比较好的变量: PS1='\[\e[7;36m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0; 阅读全文
posted @ 2017-03-14 14:43 庚武 阅读(621) 评论(0) 推荐(0) 编辑
摘要:from: http://mtd527.blog.163.com/blog/static/222723720151208127898/ 运行环境:CentOS 6.6 x64版本CentOS不像Fedora,默认是没有自动挂载NTFS的,而它可以利用NTFS-3G来实现挂载及读写。NTFS-3G 是 阅读全文
posted @ 2017-02-26 10:51 庚武 阅读(846) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/johnnycode/article/details/40624403 http://serverfault.com/questions/660210/cant-start-centos-7-network-service http://ephrain.pi 阅读全文
posted @ 2017-01-14 11:40 庚武 阅读(234) 评论(0) 推荐(0) 编辑
摘要:https://zh.wikipedia.org/wiki/PostgreSQL PostgreSQL是自由的对象-关系型数据库服务器(数据库管理系统),在灵活的BSD-风格许可证下发行。它在其他开放源代码数据库系统(比如MySQL和Firebird),和专有系统比如Oracle、Sybase、IB 阅读全文
posted @ 2016-12-10 16:25 庚武 阅读(1608) 评论(0) 推荐(0) 编辑
摘要:https://wiki.samba.org/index.php/Samba_AD_DC_Port_Usage 安装后开放端口 1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:445 2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tc 阅读全文
posted @ 2016-12-08 10:14 庚武 阅读(631) 评论(0) 推荐(0) 编辑
摘要:查看状态:iptables -L -n下面添加对特定端口开放的方法:使用iptables开放如下端口/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT保存/etc/rc.d/init.d/iptables save重启服务service ipt 阅读全文
posted @ 2016-12-07 23:08 庚武 阅读(76606) 评论(0) 推荐(1) 编辑
摘要:from:https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/ How to Increase the size of a Linux LVM 阅读全文
posted @ 2016-11-30 01:01 庚武 阅读(655) 评论(0) 推荐(1) 编辑
摘要:https://www.cygwin.com/ apt-get for cygwin? wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg install apt-cyg /binNow that apt-cyg is installed. H 阅读全文
posted @ 2016-05-05 01:21 庚武 阅读(1750) 评论(0) 推荐(0) 编辑
摘要:执行脚本时候,只是在当前的shell下开了一个子进程,切换目录的操作只对该进程中相关后续指令有效,但改变不了父进程的目录。 解决方法: 法一: 用 source a.sh就行了。 法二: [fedora@localhost ~]$ cd ~ [fedora@localhost ~]$ chmod u+x a.sh [fedora@localhost ~]$ . ./a.sh / comp... 阅读全文
posted @ 2016-04-26 14:57 庚武 阅读(4456) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include int main(int argc, int *argv[]){ const int LISTENQ = 5; // backlog: max conn size const int MAXLIN... 阅读全文
posted @ 2015-07-29 16:53 庚武 阅读(294) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示