linux 部署项目会遇到的一些问题

1.修改系统语言

sudo nano /etc/default/locale
LANG=”en_US.UTF-8”
LANGUAGE=”en_US:en”

reboot

如果系统没有装en_US:en,运行:
sudo locale-gen en_US.UTF-8

2.不能使用tab键

vi /etc/passwd
找到该用户,修改其shell为bash
ps:bash完全兼容Bourne shell

3.修改全局代理:

从 /etc/apt/apt.conf 中找到代理地址
sudo vi ~/.bashrc,添加:
http_proxy=http://用户名:密码@代理地址:代理端口
https_proxy=http://用户名:密码@代理地址:代理端口
export http_proxy
export https_proxy
保存,source ~/.bashrc
参考链接,文章排版较乱: http://blog.sina.com.cn/s/blog_43a59c7a0102whsa.html

4.查看应用程序的端口号

查看进程pid: ps -ef |grep 进程名
通过pid查看进程端口:netstat -nap |grep pid

5.ubuntu apt.conf路径:

/etc/default/apt/apt.conf 好像是这个

6. 修复安装依赖

sudo apt-get install

7.vim 重做

vim ctrl + r 重做

8.安装fluent-bit

cmake错误1:
The C compiler identification is unknown
原因是gcc没有装
错误2.
The CXX compiler identification is unknown
原因是c++没有装,linux的c++ 名字叫 yum install gcc-c++ libstdc++-devel
然而ubuntu 的c++就叫 c++

猜你喜欢

转载自blog.csdn.net/njnujuly/article/details/80423479