您的位置:首页 > 娱乐 > 八卦 > 全国企业信用信息公示系统辽宁_上海比较出名的互联网公司_传媒公司_百度浏览器网址是多少

全国企业信用信息公示系统辽宁_上海比较出名的互联网公司_传媒公司_百度浏览器网址是多少

2024/12/22 0:10:30 来源:https://blog.csdn.net/qq_36445973/article/details/143978457  浏览:    关键词:全国企业信用信息公示系统辽宁_上海比较出名的互联网公司_传媒公司_百度浏览器网址是多少
全国企业信用信息公示系统辽宁_上海比较出名的互联网公司_传媒公司_百度浏览器网址是多少

远程工具

ToDesk

Nginx

解压

tar zxvf nginx-1.20.2.tar.gz

进入Nginx 文件夹

cd nginx-1.20.2

报错解决

./configure: error: C compiler cc is not found
yum -y install gcc gcc-c++ autoconf automake make
./configure: error: the HTTP rewrite module requires the PCRE library.
sudo yum install -y pcre pcre-devel
./configure: error: the HTTP gzip module requires the zlib library.
sudo yum -y install pcre-devel
sudo yum -y install openssl openssl-devel

编译

./configure --with-http_ssl_module

安装

make && make install

Jdk1.8

解压

tar zxvf jdk-8u131-linux-x64.tar.gz

获取文件地址

cd /jdk1.8.0_131
pwd

/usr/local/jdk1.8.0_131

配置环境变量

vim /etc/profile

配置

export JAVA_HOME=/usr/local/jdk1.8.0_131
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin

重载配置

source /etc/profile

Redis

解压

tar zxvf redis-6.2.6.tar.gz

进入安装文件夹

cd redis-6.2.6

安装相关依赖

yum -y install gcc gcc-c++ tcl automake autoconf libtool make

编译&安装

make && make install

启动

cd /utils
./install_server.sh
启动一直按回车
如果报错
[root@422SOM utils]# ./install_server.sh
Welcome to the redis service installer
This script will help you easily set up a running redis serverThis systems seems to use systemd.
Please take a look at the provided example service unit files in this directory, and adapt and install them.  Sorry!
编辑
vi install_server.sh
注释掉
#bail if this system is managed by systemd
#_pid_1_exe="$(readlink -f /proc/1/exe)"
#if [ "${_pid_1_exe##*/}" = systemd ]
#then
#       echo "This systems seems to use systemd."
#       echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!"
#       exit 1
#fi

查看端口

netstat -lnp |grep 6379

端口开通

firewall-cmd --zone=public --add-port=6379/tcp --permanent
firewall-cmd --reload

配置支持远程连接

vi redis.conf
将
bind 127.0.0.1 -::1
修改为
bind 0.0.0.0 -::1

启动命令

查看redis状态
systemctl status redis_6379.service
设置开机自启
systemctl enable redis_6379.service
启动
systemctl start redis_6379.service
重启
sudo systemctl restart redis.service
关闭
sudo systemctl stop redis.service

Mysql

解压

tar xvf mysql-8.0.26-linux-glibc2.12-x86_64.tar

进入文件夹

cd /mysql

创建文件夹

mkdir data
mkdir log

创建用户

groupadd mysql
useradd -g mysql mysql

给用户赋权

chown -R mysql.mysql /usr/local/mysql
chmod 750 /usr/local/mysql/data -R

/etc/my.cnf

vi /etc/my.cnf
注释并写入
[mysqld]basedir = /usr/local/mysqldatadir = /usr/local/mysql/datasocket = /usr/local/mysql/mysql.sockcharacter-set-server=utf8port = 3306sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[client]socket = /usr/local/mysql/mysql.sockdefault-character-set=utf8

安装

cd /usr/local/mysql
bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

记住日志中的密码

mPi<Za?P:5O6

创建服务

cp -a ./support-files/mysql.server /etc/init.d/mysql
chmod +x /etc/init.d/mysql
chkconfig --add mysql

添加软链

ln -s /usr/local/mysql/bin/mysql /usr/bin

服务启动

service mysql start

登录Mysql

mysql -uroot -p

修改初始密码

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'as1e5b6n8y9i4d';

开启远程连接

create user root@'%' identified by 'as1e5b6n8y9i4d';
grant all privileges on *.* to root@'%' with grant option;

刷新权限

flush privileges;

退出

exit;

开通端口

firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload

OpenOffice & KkFile

OpenOffice

解压

tar -zxvf Apache_OpenOffice_4.1.14_Linux_x86-64_install-rpm_zh-CN.tar.gz

进入文件夹

cd zh-CN/RPMS

安装插件

rpm -ivh *rpm

复制字体

/opt/libreoffice7.5/program/share/fonts/truetype/

进入文件夹

cd /opt/libreoffice7.5/program

启动

soffice --headless --accept="socket,host=192.168.0.178,port=8100;urp;" --nofirststartwizard &

查看端口

netstat -lnp |grep 8100

KkFile

解压

tar -zxvf kkFileView-4.2.1.tar.gz

进入文件夹

cd /usr/local/kkFileView-4.2.1/bin

安装所需环境

sh install.sh

启动

sh startup.sh

端口开通

firewall-cmd --zone=public --add-port=8012/tcp --permanent
firewall-cmd --reload

链接地址

http://127.0.0.1:8012/

测试文件

http://127.0.0.1:9800/somqa/sq-386ca41e89b54a84b86f2032ed1444b2.docx

Minio

下载Mnio安装包

赋值权限

chmod +x minio

启动命令

export MINIO_ROOT_USER=ksbadmin
export MINIO_ROOT_PASSWORD=5f8s9t5g7y2n3q6z1o
export MINIO_ACCESS_KEY=ksbadmin
export MINIO_SECRET_KEY=5f8s9t5g7y2n3q6z1o
nohup ./minio server --console-address ":19800" --address ":9800" /usr/local/minio/data > /usr/local/minio/minio.log 2>&1 &

杀死进程

kill $(ps -ef | grep minio  | grep -v grep | awk '{ print $2 }')

端口开通

firewall-cmd --zone=public --add-port=19800/tcp --permanent
firewall-cmd --reload

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com