摘要: # 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 阅读(492) 评论(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 阅读(3514) 评论(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 阅读(100) 评论(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 阅读(4327) 评论(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 阅读(690) 评论(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 阅读(1663) 评论(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 阅读(994) 评论(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 阅读(103) 评论(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 阅读(148) 评论(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 阅读(5014) 评论(0) 推荐(1)
摘要: 刚刚安装的新服务器几乎崩溃了,所有内核的CPU利用率都超过50%!但是,安装ubuntu 16.04服务器后还没有运行任何东西... 一些快速的发现指向了一个名为“ m6502”的进程,该进程正在多次迭代中运行(每个CPU内核一个),并且该过程完全由用户负责。 在研究“ m6502”时,我发现它是标 阅读全文
posted @ 2020-11-10 14:49 Varden 阅读(1565) 评论(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 阅读(961) 评论(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 阅读(822) 评论(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 阅读(205) 评论(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 阅读(738) 评论(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 阅读(947) 评论(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 阅读(822) 评论(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 阅读(153) 评论(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 阅读(298) 评论(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 阅读(305) 评论(0) 推荐(0)