摘要:
# update-alternatives --list python # update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 # update-alternatives --install /usr/b 阅读全文
posted @ 2020-11-10 17:16
Varden
阅读(499)
评论(0)
推荐(0)
摘要:
添加到主机的路由 # route add -host 192.168.1.2 dev eth0:0 # route add -host 10.20.30.148 gw 10.20.30.40 添加到网络的路由 # route add -net 10.20.30.40 netmask 255.255. 阅读全文
posted @ 2020-11-10 17:15
Varden
阅读(3525)
评论(0)
推荐(0)
摘要:
通用组件 wget apt-transport-https net-tools iftop tcpdump ceph-fuse chrony 虚拟化 qemu qemu-kvm libvirt-bin libvirt-daemon-system libvirt-clients virt-manage 阅读全文
posted @ 2020-11-10 17:09
Varden
阅读(108)
评论(0)
推荐(0)
摘要:
获取帮助 $ man 5 netplan 获取配置文件示例 # dpkg -L netplan.io ... /etc/netplan 生效的配置文件路径 /usr/share/doc/netplan.io/examples/bonding.yaml 接口绑定示例 network: version: 阅读全文
posted @ 2020-11-10 17:03
Varden
阅读(4348)
评论(0)
推荐(0)
摘要:
- 网卡与DNS配置 ``` $ sudo vim /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, se 阅读全文
posted @ 2020-11-10 16:56
Varden
阅读(694)
评论(0)
推荐(0)
摘要:
安装软件 # apt-get install tightvncserver xrdp # apt-get install xubuntu-desktop 将xfce4-session写入到文件.xsession中 # echo "xfce4-session" > ~/.xsession 修改 /et 阅读全文
posted @ 2020-11-10 16:43
Varden
阅读(1698)
评论(0)
推荐(0)
摘要:
环境说明 Ubuntu 16.04 LTS 安装软件 安装apache2: apt-get install apache2 配置以后不升级: apt-mark hold apache2 配置 创建/etc/apache2/conf-available/http-fileserver.conf配置文件 阅读全文
posted @ 2020-11-10 16:38
Varden
阅读(1000)
评论(0)
推荐(0)
摘要:
创建用户并修改权限 # useradd -s /bin/bash testuser # passwd testuser //密码设置 # mkdir /home/testuser # chown -R testuser.testuser /home/testuser/ 修改组权限 # chmod - 阅读全文
posted @ 2020-11-10 16:19
Varden
阅读(107)
评论(0)
推荐(0)
摘要:
安装squid $ sudo apt-get install squid 配置squid $ sudo vim /etc/squid/squid.conf 注释以下行: http_access deny !Safe_ports http_access deny CONNECT !SSL_ports 阅读全文
posted @ 2020-11-10 16:14
Varden
阅读(154)
评论(0)
推荐(0)
摘要:
环境说明 Ubuntu 16.04 LTS 安装chrony # apt-get install chrony 查看时间同步源 # chronyc sources -v 查看时间同步源状态 # chronyc sourcestats -v 配置chrony服务端 当Chrony启动时,它会读取/et 阅读全文
posted @ 2020-11-10 15:16
Varden
阅读(5047)
评论(0)
推荐(1)
摘要:
刚刚安装的新服务器几乎崩溃了,所有内核的CPU利用率都超过50%!但是,安装ubuntu 16.04服务器后还没有运行任何东西... 一些快速的发现指向了一个名为“ m6502”的进程,该进程正在多次迭代中运行(每个CPU内核一个),并且该过程完全由用户负责。 在研究“ m6502”时,我发现它是标 阅读全文
posted @ 2020-11-10 14:49
Varden
阅读(1588)
评论(0)
推荐(0)
摘要:
环境说明 Ubuntu 16.04 LTS 安装软件 sudo apt-get install ubuntu-desktop sudo apt-get install gnome Ubuntu下切换回经典GNOME桌面的方法,打开终端输入:(目前,Fedora 15等发行版本采用GNOME 3 作为 阅读全文
posted @ 2020-11-10 14:43
Varden
阅读(967)
评论(0)
推荐(0)
摘要:
#环境说明 Ubuntu 16.04 LTS #插件安装 apt-get install ifenslave #配置interfaces auto lo bond0 eth0 eth1 iface bond0 inet static address 192.168.4.134 netmask 255 阅读全文
posted @ 2020-11-10 14:31
Varden
阅读(832)
评论(0)
推荐(0)
摘要:
字符界面亦即tty1 ~ tty6 $ sudo ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target 或 $ sudo systemctl set-default multi-user 阅读全文
posted @ 2020-11-10 14:09
Varden
阅读(211)
评论(0)
推荐(0)
摘要:
按shift进入: 开机到grub时,用上下键移到第二行的恢复模式,按e(注意不是回车) 即Ubuntu,With Linux 3.2.0-23-generic(recovery mode) 把ro recovery nomodeset 改成rw single init=/bin/bash 然后按c 阅读全文
posted @ 2020-11-10 14:05
Varden
阅读(757)
评论(0)
推荐(0)
摘要:
版本代号说明 18.04 lts -- bionic 16.04 lts -- xenial 14.04 lts -- trusty 官方源 deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiv 阅读全文
posted @ 2020-11-10 14:02
Varden
阅读(952)
评论(0)
推荐(0)
摘要:
注:ubuntu16.04默认没有openjdk-7-jdk的安装源,必须另外添加。 # add-apt-repository ppa:openjdk-r/ppa # apt-get update # apt-cache search openjdk # apt-get install openjd 阅读全文
posted @ 2020-11-10 13:53
Varden
阅读(835)
评论(0)
推荐(0)
摘要:
参考:https://www.cnblogs.com/kevingrace/p/8662088.html 环境说明 Ubuntu 16.04 LTS 安装samba服务器 # apt-get install samba 配置服务器 # mkdir /shares #创建共享目录 # vim /etc 阅读全文
posted @ 2020-11-10 13:42
Varden
阅读(157)
评论(0)
推荐(0)
摘要:
环境说明 Ubuntu 16.04 LTS 安装phpMyAdmin # apt-get install phpmyadmin 注:phpmyadmin会自动安装在/usr/share/phpmyadmin下,需要将 phpMyAdmin文件夹拷贝到/var/www/html目录下面 (14.04是 阅读全文
posted @ 2020-11-10 11:44
Varden
阅读(313)
评论(0)
推荐(0)
摘要:
服务端 # apt-get install nfs-kernel-server # mkdir /nfs #创建要共享的目录 # vim /etc/exports #导出共享目录 /nfs *(rw,sync,no_root_squash,no_subtree_check) # /etc/init. 阅读全文
posted @ 2020-11-10 11:19
Varden
阅读(313)
评论(0)
推荐(0)
摘要:
环境: Ubuntu 16.04 LTS 安装: # apt-get install libreoffice Word文档转换为PDF: # libreoffice --invisible --convert-to pdf --outdir . *.doc 阅读全文
posted @ 2020-11-10 11:12
Varden
阅读(721)
评论(0)
推荐(0)
摘要:
环境说明 Debian 8(Jessie) 更改国内源,加快打包速度 # vim config/build # vim config/bootstrap # vim config/binary 配置 # mkdir test-image && cd test-image # lb config \ 阅读全文
posted @ 2020-11-10 10:59
Varden
阅读(1459)
评论(0)
推荐(0)
摘要:
#### Contents of the preconfiguration file (for jessie) ### Localization d-i debian-installer/locale string en_US d-i keyboard-configuration/xkb-keyma 阅读全文
posted @ 2020-11-10 10:42
Varden
阅读(690)
评论(1)
推荐(0)
摘要:
安装软件 # apt-get install tftpd-hpa isc-dhcp-server apache2 配置dhcp服务器 配置文件:/etc/dhcp/dhcpd.conf option domain-name "example.org"; default-lease-time 600; 阅读全文
posted @ 2020-11-10 10:26
Varden
阅读(1288)
评论(0)
推荐(0)
摘要:
#Debian 9中的显著变化 火狐Firefox取代Iceweasel作为网页浏览器。 Thunderbird取代Icedove作为电子邮件客户端。 MariaDB替换MySQL。mysql数据库会和mariaDB同时共存产生冲突。 Debian 9中包含的90%以上的源代码包都将构建完全相同的二 阅读全文
posted @ 2020-11-10 08:39
Varden
阅读(500)
评论(0)
推荐(0)
摘要:
#杀死占用资源高的进程并重启桌面管理服务 # top # killall xfce4-panel # killall xfdesktop # killall xfsettingsd # service lightdm restart #重启xrdp服务 # service xrdp restart 阅读全文
posted @ 2020-11-10 08:32
Varden
阅读(629)
评论(0)
推荐(0)
摘要:
#组件说明 DHCP:为将要安装系统的机器分配IP,以便通过网络获取启动镜像。 TFTP:为机器提供引导映像 APACHE:提供系统镜像DVD/CD安装文件、自动安装脚本文件 PXE:开机引导 #安装DHCP # apt-get install isc-dhcp-server #配置DHCPv4,指 阅读全文
posted @ 2020-11-10 08:28
Varden
阅读(687)
评论(0)
推荐(0)

浙公网安备 33010602011771号