当前位置 知且行 linux 正文 下一篇:

centos初始化

将yum源配置为阿里云的源

  1. sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  2. sudo yum clean all
  3. sudo yum makecache
  4. sudo yum repolist
  5. sudo yum -y update

安装git

  1. sudo yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm -y
  2. sudo yum install git -y
  3. git --version

安装vim8

  1. sudo yum install epel-release -y # 配置epel源
  2. sudo yum install -y gcc python34 python34-devel ncurses-devel wget libzip bzip2 git # 安装python3,以及vim8.0编译环境
  3. cd /usr/local/src
  4. sudo wget ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2 # 下载vim8.0 建议用迅雷下载,wget下载太慢了
  5. sudo tar -jxf vim-8.0.tar.bz2
  6. cd vim80
  7. sudo make clean
  8. sudo ./configure --prefix=/usr/local/vim --enable-fail-if-missing --enable-python3interp --enable-multibyte --enable-fontset --with-features=huge # 编译安装并支持python3
  9. sudo make
  10. sudo make install
  11. sudo ln -s /usr/local/vim/bin/vim /usr/bin/vim # 建立软链
  12. vim --version # 查看版本

安装 oh-my-zsh

  1. sudo yum -y install zsh
  2. chsh -s /bin/zsh
  3. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
  4. sudo git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions # 自动提示历史命令的插件
  5. vim ~/.zshrc
  6. # plugins=(
  7. # git
  8. # zsh-autosuggestions
  9. # extract
  10. # z
  11. # )
  12. source ~/.zshrc

其他工具

  1. sudo yum install net-tools -y

lnmp

下载完整安装包

进入目录,执行 sudo ./install.sh

open_dir 报错处理:

注释 fastcgi.conf 配置

# fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

如果还报错,查看对应的web目录下是否有 .user.ini 文件,若有,将其删除

自带的default目录下的.user.ini无法删除

转载必须注明出处:https://www.zhiqiexing.com/62.html

关于我

我希望能成为一个认真、有趣、创造更多价值的人
关注微信
微信扫一扫关注我

微信扫一扫关注我

返回顶部