服务器2025年07月13日
这里介绍两种不同的配置方法,一种是通过docker,一种是直接ISO进行安装,一种是直接yum install 安装,三种安装方法均需要使用root权限 参考博客:http://yxnchen.github.io/technique/Docker部署ShareLaTeX并简单配置中文环境/ 参考博客 https://blog.csdn.net/com_st...
服务器2025年07月12日
出现下列错误: error: curl/curl.h: No such file or directory 出错原因:缺少libcurl-dev or libcurl-devel centOS上安装依赖包: yum install libcurl-dev libcurl-devel error: openssl/ssl.h: No such file or...
服务器2025年07月11日
1.vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth1 //更改网卡设备 默认eth0 HWADDR=00:0C:29:3D:5B:E3 //网卡mac地址 TYPE=Ethernet UUID=c3420d55-d2ae-46dc-b9b9-8fea3c9e3897 ONBOOT=yes /...
服务器2025年07月11日
vi /etc/sysconfig/iptables 添加以下代码即可,设置内网网段 iptables -A INPUT -p tcp --dport ! -s 127.0.0.1 -j DROP ----------------------------------------- ...
服务器2025年07月10日
今天在阿里云买了台服务器,挂载硬盘分区的时候 mount /dev/xvdb /soft 出现这个错误mount: you must specify the filesystem type,查了一下,原来没有进行格式化,执行以下命令就好了 mkfs.ext3 /dev/xvdb //表示将xvdb格式化为ext3类型文件系统 ...
后端开发2025年07月10日
0.install sublime editor(optional) ref:http://www.tecmint.com/install-sublime-text-editor-in-linux/ 1.install git $sudo yum install git $git --verison 2.install rbenv $ git clone ...
服务器2025年07月10日
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions ################################################# # Alias ...
服务器2025年07月10日
查看硬盘使用情况 df -hl [root@localhost ~]# df -hl文件系统 容量 已用 可用 已用%. 挂载点/dev/sda3 49G 52M 49G 1%. /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9G 0 1.9G 0%. /dev/shmtmpfs 1.9G 41M 1.8G 3% /runtmp...
服务器2025年07月10日
最小化安装的 主要查看硬盘使用时间 需要安装 smartmontools 这个 [root@localhost ~]# yum install -y smartmontools 已加载插件:fastestmirror base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 (1/2)...
服务器2025年07月09日
centos 7.0 最小化安装 查看IP ip addr 查看外网IP curl ifconfig.me 重启 shutdown -r now 安装wget yum -y install wget 查看所有文件 ls --all 进入目录 cd 目录名 解压.tar.gz文件 tar zxvf 文件名.tar.gz 强制删除文件 例子 rm -f /et...